Skip to main content

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
65 views

CUDA unsupported MSVC

In 13.3.1.0, CreateLibrary[{demoFile}, "demo", "Compiler" -> NVCCCompiler] produces this error: ...
მამუკა ჯიბლაძე's user avatar
1 vote
0 answers
148 views

The first step to Speed Up using GPU

If we run the following code, mathematica kernel uses only CPU : LinearOptimization[ x + y, {x + 2 y >= 3, x >= -1, y >= -1}, {x, y}] I want the ...
imida k's user avatar
  • 4,325
1 vote
0 answers
65 views

CUDADot (CUDA) taking longer than indicated by //AbsoluteTiming (~500x)

I'm using MMA 13.3 with a fresh install of cuda toolkit version 12.2. CUDADot is not as fast as indicated by absolute timing. Running the commands found here (https://reference.wolfram.com/language/...
josh's user avatar
  • 11
5 votes
0 answers
183 views

Target Device->"GPU" Not Working For Machine Learning: LibraryFunction error

I'm running Wolfram Desktop version 13.2.1, and after downloading Visual Studio, Nvidia Toolkit version 12.1 and 11.2, and verifying that ...
Daniel Berkowitz's user avatar
2 votes
0 answers
76 views

SymbolicGPU documentation

I found an interesting files there $CUDALinkPath -> ../GPUTools here ...
Kirill Vasin's user avatar
  • 1,365
1 vote
0 answers
167 views

CUDALink not working - Mathematica 12.1

I am trying out some CUDA code on a Windows 10 machine with a Nvidia RTX 3060 and can't even get the installation working, as per the debug output below : I read the various documentation and help ...
Gagle's user avatar
  • 53
4 votes
2 answers
493 views

CUDALink gives wrong results but no error on Mathematica 13.2

I installed Mathematica 13.2 under Linux Mint 21.1 (Ubuntu 22.04). After installing cuda-toolkit-11-8. I get True as answer from CUDAQ[], but if I start some calculations I get wrong results. ...
Tschibi's user avatar
  • 877
0 votes
0 answers
203 views

Integration using CUDA kernels

I have never work with CUDA in Mathematica. My task connected with the calculation of a big amount of the same integrals. I have only 8 cores processor but my PC also has video processor with large ...
Mam Mam's user avatar
  • 1,883
1 vote
1 answer
166 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 ...
Stuart Poss's user avatar
  • 1,943
1 vote
0 answers
112 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....
Stuart Poss's user avatar
  • 1,943
1 vote
1 answer
148 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: ...
Stuart Poss's user avatar
  • 1,943
3 votes
0 answers
131 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 ...
Fidel I. Schaposnik's user avatar
3 votes
0 answers
74 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? ...
Iconoclast's user avatar
0 votes
0 answers
69 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 ...
nolimits's user avatar
7 votes
0 answers
192 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 ...
Gianni Tallarita's user avatar
5 votes
0 answers
186 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 ...
Andrew's user avatar
  • 2,523
15 votes
0 answers
161 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 ...
njpipeorgan's user avatar
  • 1,176
1 vote
1 answer
69 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, ...
PalvinWang's user avatar
3 votes
1 answer
652 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 ...
Artem Alexandrov's user avatar
3 votes
0 answers
102 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 ...
Jonathan Kinlay's user avatar
5 votes
0 answers
208 views

Fast N-Body Simulation with CUDA [closed]

There is a Mathematica code for 3 body simulation ...
vito's user avatar
  • 8,998
2 votes
0 answers
74 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. ...
MaxJ's user avatar
  • 1,535
12 votes
4 answers
794 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 ...
chris's user avatar
  • 23.1k
4 votes
0 answers
221 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 ...
M.R.'s user avatar
  • 31.7k
11 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/...
Jerome Ibanes's user avatar
0 votes
0 answers
53 views

Why am I getting strange results from CUDADot?

This is what I am getting: This is what I am expecting:
user63306's user avatar
3 votes
1 answer
1k 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: ...
a20's user avatar
  • 912
1 vote
0 answers
71 views

How to set parameters for CUDAFunctionLoad for a CUDA kernel?

I am trying to load the following CUDA kernel using CUDAFunctionLoad: ...
Ambarish Nag's user avatar
1 vote
0 answers
142 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 ...
Iconoclast's user avatar
0 votes
0 answers
156 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 ...
Iconoclast's user avatar
0 votes
0 answers
82 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) ...
Normi 's user avatar
  • 31
0 votes
1 answer
77 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 ...
revanth roy's user avatar
3 votes
1 answer
300 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 ...
Joseph Palasz's user avatar
2 votes
1 answer
80 views

CUDALink experienced an internal error when assigning values to shared variable

Following is the CUDA kernel: ...
ZHANG Juenjie 's user avatar
2 votes
1 answer
86 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: ...
ZHANG Juenjie 's user avatar
2 votes
0 answers
137 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 ...
adm's user avatar
  • 81
8 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 ...
Chalky's user avatar
  • 83
3 votes
1 answer
358 views

CUDAQ[ ] returns False after update

When I try Needs["CUDALink`"] CUDAQ[] It returns False I tried CUDAResourceUninstall ...
markus's user avatar
  • 31
1 vote
1 answer
286 views

Using library code (specifically curand) with CUDALink

...
John Doty's user avatar
  • 13.9k
5 votes
1 answer
422 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 ...
Wizard's user avatar
  • 2,720
1 vote
2 answers
670 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 ...
M.R.'s user avatar
  • 31.7k
3 votes
1 answer
232 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. ...
Carlo Lo's user avatar
4 votes
0 answers
517 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. ...
wutch's user avatar
  • 141
0 votes
0 answers
62 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 ...
A. Vieira's user avatar
  • 503
2 votes
1 answer
419 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 ...
SumNeuron's user avatar
  • 5,422
2 votes
0 answers
237 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 ...
pbx's user avatar
  • 842
3 votes
1 answer
196 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: ...
TeddyWestside's user avatar
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
3 votes
1 answer
802 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 ...
Luca Pontiggia's user avatar
1 vote
0 answers
260 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: ...
abwatson's user avatar
  • 1,929