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.
Questions tagged [opencllink]
23 questions
9
votes
2 answers
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 Mathematica is honouring this choice?
The rest of this post is about how I tried to do this…
Szabolcs
- 234,956
- 30
- 623
- 1,263
4
votes
1 answer
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 receive an internal error
OpenCLFunction::invprop: OpenCLLink encountered an invalid…
user2224780
- 153
- 5
2
votes
0 answers
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.
example/AutomaticSingleToDoublePrecisionConversion
Is this just a 'zoom' problem?
*…
HyperGroups
- 8,619
- 1
- 26
- 63
2
votes
0 answers
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 an extra
argument to the ), then the dimension…
user2224780
- 153
- 5
2
votes
0 answers
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:
CUDAFunctionLoad::cmperr: -- Message text not found --
(clang: error: unsupported…
user5601
- 3,573
- 2
- 24
- 56
1
vote
0 answers
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 terminates with an error after displaying some info), yet I would like to know…
Lorenzo Pistone
- 1,607
- 11
- 16
1
vote
1 answer
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 solution. In particular, I was wondering if it would be…
Valerio
- 1,982
- 13
- 23
0
votes
1 answer
OpenCL matrix multiplication on Mathematica
I took a matrix multiplication written using OpenCL from here:
src = "__kernel void
floatMatrixMult(__global float * MResp,
__global float * M1,
__global float * M2,
__global int * q)
{
//…
MOON
- 3,864
- 23
- 49