Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is a follow-up question from linking the libraries for CUDALlink in Ubuntu 12.10.

The tests that I execute (CUDAQ[], CUDAInformation[], CUDADriver[]) seem to give successful outputs. However, when I try to execute actual CUDA commands the results are clearly wrong.

For instance, CUDATranspose[Table[i, {i, 2}, {j, 2}]] returns


And the numbers change each time I execute it. I also noticed that some commands complain that CUDALink is actually not initialised, like CUDADot[Table[i, {i, 2}, {j, 2}], Table[i, {i, 2}, {j, 2}]]:

    CUDADot::notinit: CUDALink is not initialized

But according to CUDAQ[], CUDAInformation[] and CUDADriver[] it should be. Before trying to solve the problem, how can I determine where it is? Is it within Mathematica? At the NVIDIA drivers level? Does it have to do with the gcc version?

share|improve this question
Related to this ? – b.gatessucks Apr 10 '13 at 16:23
Very probably for the CUDADot part. Thanks – Ziofil Apr 10 '13 at 16:26
Please come back with updates if you make any progress; there are a few people with the same issue. – b.gatessucks Apr 10 '13 at 16:27
I deactivated my linux licence and used it to test some CUDA commands on a windows 7 machine. It gives me very similar wrong results!! What is going on?? – Ziofil Apr 10 '13 at 18:35

Changing graphics card to a newer one (GTX 660 Ti for me, from GeForce 9500 GT) worked for me. Probably there is an issue with using newer mathematica CUDA functions on older cards. I hope this helps.

share|improve this answer
I think there is an issue with almost all CUDA functions on cards this old: they simply do not possess the hardware capabilities required by most useful workloads. The Wikipedia article does a good job of describing what is missing from CUDA 1.0. I'd also be surprised if the recent nVidia drivers had been properly tested with these old cards, so this problem may not be specific to Mathematica. – Oleksandr R. May 17 '13 at 3:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.