Questions tagged [cudalink]

Questions about using CUDALink, Mathematica's method to accelerate programs using NVidia graphics cards.

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

OpenCL with Mathematica 12

I got CUDA to work but no OpenCL: "OpenCLLink is not supported on this system." ...
user avatar
0 votes
1 answer
96 views

CUDA SystemInformation

I run the following: ClearAll; Needs["CUDALink`"] CUDAQ[] The last returning True. I then run SystemInformation[]. Before I get the expected panel ...
user avatar
  • 1,496
0 votes
0 answers
123 views

CUDAFunction Complie Error under Linux: Attribute "__malloc__" does not take arguments

I'm currently using version 12.3.1 under Ubuntu 20.10, with the newest graphics driver(495) and CUDA 11.5. Mathematica can detect and run some CUDA operations except CUDAFunction*. I can't run any ...
user avatar
1 vote
0 answers
75 views

CUDA JuliaSet Whitepaper Example with Vers. 12.3

As a newbie to using Mathematica with CUDA, I have attempted to execute an example presented in the "WOLFRAM WHITE PAPER CUDA Programming with the Wolfram Language": @ https://www.wolfram....
user avatar
  • 1,496
1 vote
1 answer
88 views

CUDAResourcesInformation Issue during CUDA setup

I am trying to set up CUDA on a Windows 10/64 bit machine with a NVIDIA GeFore GTX 1080 with Max-Q Design running Mathematica Version 12.3. I have issued the following commands: ...
user avatar
  • 1,496
0 votes
0 answers
29 views

Driver issue with CUDA on Linux?

I have Mathematica 12.3 installed on a linux machine (I am using arch-linux). My GPU is a Quadro P620. to work with CUDA I installed the following packages (using pacman as usual) ...
user avatar
2 votes
0 answers
91 views

How to use _Complex types in CUDAFunctionLoad?

The documentation for CUDAFunctionLoad specifies various base datatypes you can use for your function's arguments, including ...
user avatar
2 votes
0 answers
53 views

Unable to uninstall an older CUDAResource paclet

I am trying to uninstall an older version of CUDAResource but cannot do so. Any ideas please? Is there a manual way to do so? ...
user avatar
0 votes
0 answers
52 views

CUDA installed on Mathematica 12.1, is running but CUDA-Functions still run on CPU

I installed Mathematica and CUDA but all examples and functions are executed on CPU rather than GPU. I can check the time for a CUDAFourier vs Fourier and also don't see a GPU load in the taskmanager ...
user avatar
7 votes
0 answers
158 views

Extremely Long GPU Initialization Times on Mathematica 12.2 and RTX3090 [closed]

I'm having trouble getting my new GPU system to work with Mathematica 12.2. I have two RTX3090 cards in my setup. My NVIDIA drivers are version 460.89 (the latest). I have installed CUDAToolkit 11.0 ...
user avatar
5 votes
0 answers
118 views

Is there a Mathematica CUDA ode solver?

I have a system of ODEs which I'd like to solve with many (thousands) different initial conditions. In the net there are articles that CUDA can speed up such computations, but I haven't found ...
user avatar
  • 2,443
14 votes
0 answers
143 views

How to use user-provided CUDA toolkits?

In the revision history, Mathematica v12.1 claims to have "support for user-provided CUDA Toolkits". But other than this line in the revision history, I cannot find any other reference to ...
user avatar
  • 1,136
1 vote
1 answer
46 views

CUDA Real_t data type yield wrong result

I'm working on writing CUDA code on MMA, because I found that CUDA on MMA can reach the max precision from this webpage. When I run the code below with float type, ...
user avatar
3 votes
1 answer
476 views

CUDA usage in "everyday life"

I have checked documentation about CUDA usage in Mathematica and it seems that it is quite few applications of CUDA. Are the any additional packages/functions/tutorials/documentations for CUDA in ...
user avatar
3 votes
0 answers
88 views

Problems with CUDAFinancialDerivative in Mathematica 12.1

I am attempting to run some CUDA functions in MMA 12.1, specifically CUDAFinancialDerivative. As I recall, this function (and other CUDA functions) ran successfully on this machine with earlier ...
user avatar
5 votes
0 answers
152 views

Fast N-Body Simulation with CUDA [closed]

There is a Mathematica code for 3 body simulation ...
user avatar
  • 8,648
2 votes
0 answers
62 views

Using CUDALink on Ubuntu 18.04

I can not get CUDALink to work and dont know where to start. None of the CUDA functions works but there are no obvious errors. I am running Ubuntu 18.04 LTS and Mathematica 12.1. ...
user avatar
  • 1,525
12 votes
4 answers
555 views

CUDA on Tesla V100 card

Context I am trying to run CUDALink with a Centos 6.10 Mathematica 12.0 [cuda 10.1]. Host has NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1) card ...
user avatar
  • 21.7k
4 votes
0 answers
192 views

Interactive CUDAFluidDynamics example without CUDA?

On Macbooks OpenCL works but not CUDA. I saw this fun example CUDAFluidDynamics in the CUDALink package and I wanted to play with it, but couldn't. Perhaps someone ...
user avatar
  • 30.4k
10 votes
3 answers
2k views

Mathematica 12, supported GPUs

It seems that Mathematica 12 doesn't support NVidia 2xxx (i.e 2080), 16xx or 1xxx series. Could it be that the CUDA section has not yet been rewritten for 12? https://reference.wolfram.com/language/...
user avatar
0 votes
0 answers
49 views

Why am I getting strange results from CUDADot?

This is what I am getting: This is what I am expecting:
user avatar
3 votes
1 answer
957 views

CUDA on Manjaro Linux (Arch)

I have been struggling getting CUDA to work on Mathematica 11.3 and Manjaro Linux (kernel 4.19.16-1-MANJARO). Trying some commands I get the following: ...
user avatar
  • 917
1 vote
0 answers
57 views

How to set parameters for CUDAFunctionLoad for a CUDA kernel?

I am trying to load the following CUDA kernel using CUDAFunctionLoad: ...
user avatar
1 vote
0 answers
119 views

CUDACCompilers[] returns an empty list

I have just installed Mathematica 11.3.0.0 on Windows 10 (Professional), with an NVIDIA GT 630M GPU on my Dell Inspiron. I have Visual Studio 2010 Express C++ Compiler installed on my system. I am ...
user avatar
0 votes
0 answers
134 views

CUDAQ::internal: CUDALink experienced an internal error

I have Mathematica 11.0.0 installed on Windows 10, with an NVIDIA GT 630M GPU on my Dell Inspiron. I am trying to run the CUDA examples in the Help files. All of the setup functions for CUDALink work ...
user avatar
0 votes
0 answers
78 views

CUDADeviceCount is 0 on Mathematica 11.3 and Paclet 11.3.82

I am Normi. I am using Mathematica 11.3 and trying to use CUDA Kernel on Windows 10. My Graphic Cards NVIDIA Tesla K20c (it is not in the list of supported GPU. But it has Tesla K20 in the list) ...
user avatar
  • 11
0 votes
1 answer
70 views

Why does CUDAFunctionLoad not accept character types (strings)? [closed]

Why does CUDAFunctionLoad not accept character types (strings)? I want to load equations defined in an array (a list of equations) which is written in Mathematica ...
user avatar
3 votes
1 answer
236 views

Use of GPU/CUDA to speed up rendering of surface

I am attempting to create several surface renderings of expressions that come out of a solution for the eigenvalues of a matrix and the resulting expressions are considerably messy The eigenvalue ...
user avatar
2 votes
1 answer
78 views

CUDALink experienced an internal error when assigning values to shared variable

Following is the CUDA kernel: ...
user avatar
2 votes
1 answer
71 views

Target system specification is not available for NVIDIA CUDA Compiler installation

I Installed Mathematica correctly and it indeed found my GPU. My case is exactly the same as : the same issue link However, it is not answered. Does anyone know the reason? My case: ...
user avatar
2 votes
0 answers
131 views

Cuda Paclet for 11.3

I have Wolfram Mathematica 11.3 installed on Ubuntu 16.04. My card is GTX-750Ti. I had "Installed" the CUDAResources-Lin64-11.3 over the internet. Can I "create" a Paclet of it so that I don't have to ...
user avatar
  • 81
6 votes
1 answer
1k views

CUDA for linear equations

TLDR; Is there a way to solve linear equations of a sparse matrix (discretized laplace operator) efficiently using CUDALink in Mathematica? I didn't find a CUDALinearSolve or CUDAMatrixInverse or ...
user avatar
2 votes
1 answer
267 views

CUDAQ[ ] returns False after update

When I try Needs["CUDALink`"] CUDAQ[] It returns False I tried CUDAResourceUninstall ...
user avatar
  • 21
1 vote
1 answer
231 views

Using library code (specifically curand) with CUDALink

...
user avatar
  • 13.5k
5 votes
1 answer
346 views

cannot load CUDAFunction from cubin, ptx or library file

According to the documentation of CUDAFunctionLoad it should be easy to specify a compiled file (cubin, ptx, dll should all work) as the source for loading a ...
user avatar
  • 2,690
1 vote
2 answers
541 views

Why is CUDALink failing?

I have a new windows 10 laptop with a discrete nvidia graphics card (all drivers up to date). The first example from the documention of CUDAFunctionLoad[] in v11.2 ...
user avatar
  • 30.4k
3 votes
1 answer
221 views

CUDAQ[] returns false in Mathematica 10.0.2.0, Mac OS 10.13.2, CUDA Driver Version 387.99

CUDAQ[] returns False on my Mac OS 10.13.2. I typed Needs["CUDALink`"] and it returns no error. ...
user avatar
4 votes
0 answers
448 views

NVCC CUDA Compiler not showing up

I am trying to follow instructions for "Compiling for CUDA", so that I can write my own functions to run on the GPU. However, CUDAFunctionLoad gives me errors. ...
user avatar
  • 141
0 votes
0 answers
60 views

Will CUDAlink accelerate my already written code?

I'm reading through CUDAlink's documentation, but I can't quite understand if with I'll boost my code, that I've already written, or if I'll need to rewrite my code in C to take advantage of CUDA's ...
user avatar
  • 493
2 votes
1 answer
389 views

CUDALink and eGPU for Mac?

I have: MacBook Pro mid 2014 13" (i.e. just an onboard Intel graphics card) NVIDIA GeForce Titan X Akitio Node Thunderbolt 2 Cable Thunderbolt 2 to Thunderbolt 3 Adaptor I have installed the NVIDIA ...
user avatar
  • 5,182
2 votes
0 answers
212 views

Wrong number of CUDA cores shown (GTX1070)

I installed the CUDA toolkit by directly obeying to the WRI instructions and use MMA 11.1.1.0 as well as the paclet version 10.5.0. While CUDA's deviceQuery sample ...
user avatar
  • 822
3 votes
1 answer
178 views

CUDAMap does not work for the Sqrt function

CUDALink is working fine on my LINUX machine. I am using Mathematica 11.1 and CUDAMap works for all of the functions that it supports: ...
user avatar
6 votes
1 answer
742 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 ...
user avatar
3 votes
1 answer
667 views

Fast element wise multiplication of many, many submatrices of a 2D array

There is an edited section at the bottom to clarify some questions which have come up in the comments. I have some code which generates (according to two coordinates) two $m\times n$ arrays and then ...
user avatar
1 vote
0 answers
259 views

Mma 11.1.1 does not recognize GPU

The newest version of Mma 11.1.1 advertises "Re-enabled GPU support for neural networks for Mac." But when I install on an Apple MacBook Pro with an NVIDIA GeForce GT 750M GPU, and I do: ...
user avatar
  • 1,857
4 votes
1 answer
326 views

How to determine MMA/CUDA support for specific GPUs?

This question asked how to target an Nvidia GTX 1080 with MMA 11.0.1 (which is also my current version) and from the comments it is clear that the user was then able to use this card successfully even ...
user avatar
  • 2,410
4 votes
0 answers
150 views

CUDA not recognized on MacBookPro

I am running Mma 11.1.0 on MacOS 10.12.4 on MacBook Pro (Retina, 15-inch, Mid 2014) with NVIDIA GeForce GT 750M 2048 MB I installed the Nvidia CUDA driver 8.0.71. I evaluate ...
user avatar
  • 1,857
2 votes
1 answer
939 views

Parallel Table and CUDA

I have a large matrix computation and I use Parallel table, which launches 4 Kernels. I do not have a GPU. Will having a GPU help me in Launching more Kernels and solve the problem faster? All my ...
user avatar
7 votes
2 answers
587 views

CUDA image processing

I am having an issue with image processing involving CUDALink. ...
user avatar
  • 73
1 vote
0 answers
72 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 ...
user avatar