Category : opencl

Good afternoon! I need to run a program written in C++ that uses OpenCL. Before that I enabled OpenCL headers, installed CUDA (this is optional) and reinstalled Visual Studio and MinGW. I have an NVIDIA GeFOrce 1080. Well, I have an array<int, 3> loc and as a result of the execution loc should change to ..

Read more

I can’t figure out exactly what is wrong with my code but the vadd function does not seem to work. I think it has to do with to way the kernel is created and how arguments are passed. The function does not write to any of the passed buffers. Everything compiles. const char *KernelSource = ..

Read more

In the case of cl_context and cl::Context, we can do: cl::Context context_ = cl::Context(device); cl_context context = context_(); Now, I have an OpenCL program, with the following snippet in it: … void* svm_data = clSVMAlloc(context, svm_flags, svm_buffer_size, 0); … I would like to do something similar here to what we did with cl::Context above: cl::SVMAllocator ..

Read more

I’m starting with OpenCL and would like to develop a word frequency counter from a given text. My difficulty is that OpenCL is different of anything I’ve studied in programming. I thought about making it with a map but I don’t know if it’s possible, so I put all the words in the text file ..

Read more