Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
39 views

[Goal & Problem] I am trying to accelerate ONNX model inference on an RK3588 (Orange Pi 5) board using the Mali-G610 GPU. I have built OnnxRuntime (ORT) with the ACL (Compute Library) Execution ...
이호연's user avatar
0 votes
0 answers
49 views

I want to compile and run openCL programs to do some parallel computing on my mobile device s24fe(Exynos2400e) I tried to compile clinfo but it always returns 0 in no of devices I tried various ...
Lakshit Karsoliya's user avatar
1 vote
1 answer
96 views

I am writing a OpenCL kernel that uses atomics. As I only need to synchronize groups of 192 threads, I figured using local atomics would be ideal. However, the change from global to local atomics ...
Edward Murphy's user avatar
0 votes
0 answers
17 views

Suppose I've allocated a region of memory with clSVMAlloc(). Looking at the clEnqueueSVMMap() function, we are told that it will "allow the host to update a region of a SVM buffer". Does ...
einpoklum's user avatar
  • 137k
0 votes
0 answers
16 views

Most OpenCL API calls return a status/error value, either directly or via an out-parameter (example: clCreateBuffer()). While that is not as informative as a long-form string description, it can tell ...
einpoklum's user avatar
  • 137k
0 votes
1 answer
36 views

I'm looking at the clEnqueueWaitForEvents() OpenCL API function. As I see it, this is a real boon. You see, almost all clEnqueueXXX functions take an array-of-events, and the size of that array, to ...
einpoklum's user avatar
  • 137k
1 vote
1 answer
39 views

In the following program, I compile a kernel for the first device on the first platform: const char* kernel_source_code = R"( __kernel void vectorAdd( __global float * __restrict C, ...
einpoklum's user avatar
  • 137k
0 votes
0 answers
42 views

There is an SIGV wile calling clGetPlatformIDs, which is sometimes a fatal SIGSEGV. Minimum exemple I found producing it: #include <stdio.h> #include <stdlib.h> #include "CL/cl.h"...
LentilesGR's user avatar
0 votes
1 answer
43 views

OpenCL has several API functions to set callback functions - for events, for buffers/memory objects, for contexts and maybe more. What happens if you invoke one of these functions, more than once, on ...
einpoklum's user avatar
  • 137k
0 votes
0 answers
65 views

I'm working on a GPU-accelerated 2D convolution in OpenCL for a 2048x2048 image using a 3x3 Sobel filter. I implemented two versions of the kernel: A naive version that uses only global memory. An ...
Mxneeb's user avatar
  • 19
0 votes
1 answer
44 views

I have AMD GPU. I'm using pyopencl. I have a context and a queue. Then I created an array: import pyopencl import pyopencl.array ctx = pyopencl.create_some_context(interactive=False) queue = pyopencl....
haael's user avatar
  • 1,059
0 votes
1 answer
49 views

I use the OpenCL.NET C# wrapper for OpenCL. My GPU from GPU-Z is AMD Radeon Barcelo, and specific for OpenCL: Platform Version: OpenCL 2.1 AMD-APP (3570.0) Device Name: gfx90c Device Profile: ...
Chameleon's user avatar
  • 2,239
2 votes
1 answer
68 views

I'm building my first OpenCL program in C in order to quickly compute the Mandelbrot Set, and I'm getting a segfault on clBuildProgram. Below is the relevant code: The kernel code (though the program ...
Lemma's user avatar
  • 143
0 votes
1 answer
29 views

In OpenCL, the clLinkProgram() function takes (among other things) A cl_context context handle; An array of cl_program handles of program objects. Now, a cl_program is always created in a context; ...
einpoklum's user avatar
  • 137k
1 vote
0 answers
26 views

What is the typical way of invoking multiple OpenCL devices for multiple compute nodes that uses job schedulers such as SLURM or PBS? Let's say I requested 64 GPUs in total where each computes node is ...
Redshoe's user avatar
  • 301
0 votes
0 answers
37 views

The OpenCL API has the following function: cl_program clCreateProgramWithBinary( cl_context context, cl_uint num_devices, const cl_device_id* device_list, const size_t* lengths, ...
einpoklum's user avatar
  • 137k
0 votes
4 answers
1k views

I have successfully used OpenCL on my local windows PC and I would now like to get my program working in a container First attempt FROM ubuntu:latest RUN apt-get update #Done to make install non-...
sav's user avatar
  • 2,170
0 votes
0 answers
6 views

In OpenCL, when you want to compile (not link) a kernel for some target devices, you call: cl_int clCompileProgram( cl_program program, cl_uint num_devices, const cl_device_id* device_list,...
einpoklum's user avatar
  • 137k
2 votes
1 answer
63 views

In CUDA, launching a kernel means specifying its arguments, marshaled via an array of pointers: CUresult cuLaunchKernel ( CUfunction f, /* launch config stuff */, void** kernelParams, ...
einpoklum's user avatar
  • 137k
0 votes
0 answers
16 views

In OpenCL (let's say v3.0), I know one can create contexts using sub-devices. But - what happens if you release all references to a sub-device while the context is not released (i.e. has positive ...
einpoklum's user avatar
  • 137k
1 vote
0 answers
14 views

The OpenCL API defines such a thing as the "default queue", for a given context and device in that context. Indeed, when we clCreateCommandQueueWithProperties, one of the properties we ...
einpoklum's user avatar
  • 137k
0 votes
0 answers
66 views

OpenCL has had a bumpy ride over the years w.r.t. to the prospects of using C++ to write kernels. First there was "OpenCL C++ kernel language", standardized with OpenCL v2.1 - but that did ...
einpoklum's user avatar
  • 137k
1 vote
0 answers
38 views

Grayscale kernel only reading first pixel The following is my grayscale.cl kernel implementation. The problem that I am facing is that the kernel seems to perform the grayscale calculation only on the ...
Arief Kurniawan's user avatar
0 votes
1 answer
84 views

I have a naive question about GPU programming. (ChatGPT and Claude didn't really give me a convincing answer. Maybe I'm prompting badly.) GPU programming languages like CUDA and OpenCL organise ...
Martin Berger's user avatar
1 vote
1 answer
128 views

I'm trying to code an opencl C++ application on an old Ubuntu laptop. It has two GPU's which are shown when I run lspci | grep VGA: 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core ...
Turgut's user avatar
  • 859

1
2 3 4 5
116