Questions tagged [opencllink]

OpenCLLink allows the Wolfram Language to use the OpenCL parallel computing language. It contains functions that facilitate loading user-defined OpenCL functions into the Wolfram Language. OpenCLLink also integrates OpenCL with existing Wolfram Language development tools, allowing a high degree of automation and control.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

Calling OpenCLFunction

Example from doc center (OpenCLLink/ref/OpenCLFunctionLoad): What do the underlined arguments mean? They do not exist in the function definition, but without them function calling does not work. ...
5
votes
2answers
152 views

OpenCL compute large matrices

I am trying to compute a big matrix $C$, of size $M \times N$, using the elements of the input matrices $A$ and $B$. The matrix $A$ is of size $M\times4$ and the matrix $B$ is of the size $2\times N$. ...
1
vote
1answer
76 views

Marginalize a table over given parameters using OpenCL

Here it was asked how to generalize the procedure of marginalizing a table over given dimensions. The solution given here works very well. I would like to have a parallelized version of that ...
1
vote
0answers
43 views

How to get command line for OpenCLFunctionLoad?

Is there a way how to get the command used to compile my OpenCL kernel, when I use OpenCLFunctionLoad[]? When I use ...
5
votes
1answer
634 views

CUDALink support-Mathematica 11

Greetings & Salutations, I have Mathematica 11.0 on a Windows 10(Home) system with a Nvidia GTX1050Ti gpu, driver version 382.33 and CUDA version 8.0.61; I am getting CUDALink is not supported ...
1
vote
0answers
67 views

Help Getting GPU and the attached graphic monitor device information using CUDA or Open CL from Mathematica

My project is in the area of image analysis. I am analyzing the output of a projector attached to the computer running W Mathematica. Therefore, I will like to get information of the graphical device ...
6
votes
0answers
142 views

Generating OpenCL C code [closed]

I'm trying to make an interactive complex function plotter using OpenCl. So far I can only plot functions that I hardcode into the kernel by hand. I'd like to be able to use ...
18
votes
1answer
970 views

OpenCL stopped working‏ in Mathematica 10.2

Bug introduced in 10.2 and fixed in 11.1 I have noticed that OpenCL stopped working on Intel HD Graphics 4600 (Windows 8.1 x64, Windows 10 x64, latest Intel graphic drivers). Can anyone confirm this ...
0
votes
1answer
368 views

OpenCL matrix multiplication on Mathematica

I took a matrix multiplication written using OpenCL from here: ...
2
votes
0answers
136 views

OpenCL_result not the same as that in the example-Julia

My system is "Windows-x86-64", Mathematica version is 10.0, my card is GTX860M When I'm trying this example, my result is not the same like that in the example. ...
4
votes
1answer
128 views

OpenCLLink eating up all host memory

I am calling lots of OpenCL functions from Mathematica. The problem is that the memory the kernel uses grows and grows until the RAM is fully occupied. I have created a small piece of code to ...
2
votes
0answers
196 views

OpenCL pass local memory

I've got the following OpenCL function: __kernel void mergeSort(__global const float * in,__global float * out, __local float *aux) When I try to call it, I only ...
2
votes
0answers
27 views

OpenCLLink specify grid size when calling function

The Mathematica documentation (section "Details": https://reference.wolfram.com/mathematica/OpenCLLink/ref/OpenCLFunction.html) states that: On launch, if the number of threads is not specified (as ...
5
votes
1answer
4k views

How is the dimensionality of an OpenCL problem specified?

When writing an OpenCL kernel, calls to get_global_id() are used to determine the "position" within the problem that a particular instance of the kernel is working ...
1
vote
0answers
182 views

Debug OpenCL installation issues and beignet

I am trying to make Mathematica recognize my OpenCL installation, which is beignet. It is experimental software, so I know that it probably won't work (even clinfo ...
2
votes
0answers
1k views

Can Mathematica automatically take advantage of the GPU on the new Mac Pro?

I'm upgrading my Mac to one of the new Mac Pro R2D2 Darth Vader models that have just been released. They come standard with twin AMD FirePro D300 cards, or twin D500 cards. I don't need that much ...
9
votes
2answers
3k views

How to choose the OpenCL device to use?

OpenCLInformation tells me that my computer has three available OpenCL devices. How can I choose which one to use for computations? How can I verify that ...
5
votes
0answers
2k views

Solar system simulation (n-body physics) with OpenCL

I would like to simulate a n-body solar system in Mathematica. I have found the following example: http://www.wolfram.com/mathematica/new-in-8/cuda-and-opencl-support/simulate-thousands-of-particles-...
6
votes
0answers
314 views

Does OpenCL/Cuda memory leak if not Unloaded? Problem with allocating/loading GPU memory in Module

The GPU memory manager documentation is not too clear, does GPU memory leak if not explicitly unloaded or if the symbol that holds the reference to the GPU memory gets collected, the GPU memory gets ...
1
vote
2answers
315 views

Image's pixels GPU colour classes splitting

How can I split in color classes, the pixels of an image that I load in Mathematica? I would an output like this: ...
2
votes
0answers
172 views

The OpenCL documentation examples are not working, what does CUDAFunctionLoad::cmperr mean?

I just updated to the latest CUDA drivers and the documentation examples stopped working. I'm using the latest Mathematica, OpenCLQ is True and the error is: ...
6
votes
1answer
3k views

OpenCL Dot Product

I have to calculate billions of dot products. My current implementation uses Compile to generate C code and it's very fast (10s ...
13
votes
1answer
1k views

Is there a simple example using OpenCLLink that shows performance advantages?

OpenCLLink allows Mathematica to use the OpenCL parallel computing language. I have done some tests on simple examples, but so far, the CPU regularly outperforms ...