Skip to main content

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
3 votes
1 answer
78 views

OpenCLLink does print build errors (MacOS M1 / Wolfram Engine 14.1)

To reproduce an error ...
Kirill Vasin's user avatar
  • 1,365
2 votes
1 answer
42 views

Memory management / How to set OpenCLMemory a new value

According to the official documentation, we have only OpenCLMemoryAllocate OpenCLMemoryLoad both of them return a new pointer ...
Kirill Vasin's user avatar
  • 1,365
3 votes
0 answers
100 views

OpenCLLink M1 not supported

I am currently using Macbook Air M1 Wolfram Engine 13.3 Compile, FunctionCompile works with no issues, however an attempt to ...
Kirill Vasin's user avatar
  • 1,365
2 votes
0 answers
104 views

OpenCL How to read and write to VRAM array

I am quite a newbie to OpenCLLink. My program needs to perform some heavy computations on GPU including solving the eigenvector problems. Since I didn't find a straightforward implementation of this ...
Kirill Vasin's user avatar
  • 1,365
5 votes
2 answers
453 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$. ...
dykes's user avatar
  • 371
1 vote
1 answer
103 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 ...
Valerio's user avatar
  • 1,982
1 vote
0 answers
62 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 ...
Zdenek's user avatar
  • 181
6 votes
1 answer
793 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 ...
Vectorizer's user avatar
1 vote
0 answers
76 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 ...
Jose Enrique Calderon's user avatar
6 votes
0 answers
166 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 ...
ra91's user avatar
  • 317
18 votes
1 answer
1k 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 ...
Alexey Golyshev's user avatar
0 votes
1 answer
447 views

OpenCL matrix multiplication on Mathematica

I took a matrix multiplication written using OpenCL from here: ...
MOON's user avatar
  • 3,876
2 votes
0 answers
145 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. ...
HyperGroups's user avatar
  • 8,629
5 votes
1 answer
156 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 ...
user2224780's user avatar
4 votes
1 answer
323 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 ...
user2224780's user avatar
2 votes
0 answers
38 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 ...
user2224780's user avatar
6 votes
1 answer
5k 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 ...
Chris's user avatar
  • 163
1 vote
0 answers
218 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 ...
Lorenzo Pistone's user avatar
2 votes
0 answers
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 ...
wolfies's user avatar
  • 8,752
9 votes
2 answers
4k 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 ...
Szabolcs's user avatar
  • 236k
5 votes
0 answers
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-...
shrx's user avatar
  • 7,827
6 votes
0 answers
341 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 ...
Angelo Pesce's user avatar
2 votes
0 answers
185 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: ...
user5601's user avatar
  • 3,780
8 votes
1 answer
4k 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 ...
s0rce's user avatar
  • 9,662
13 votes
1 answer
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 ...
M.R.'s user avatar
  • 31.7k