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

learn more… | top users | synonyms (1)

0
votes
0answers
27 views

CUDATranspose bad result

A fairly simple experiment, I am trasponsing an identitiy (3x3) matrix, and I got a weird result. I tried also CUDADot and works as expected. The code I used: ...
0
votes
1answer
37 views

NDSolve with CUDALink

I am solving a system of non linear differential equations. The time needed to solve them is quite long and I would like to shorten it. Is it possible to send the NDSolve command to be solved by the ...
2
votes
0answers
80 views

calling CUDA library functions using MathematicaGPULibrary (WGL)

Recently I want implement a sparse linear solver in Mathematica with cuda, and I found the following resource: calling CUDA library functions. As it shows, I tried to use CreateLibrary function to ...
3
votes
0answers
72 views

Figure out how to copy to constant memory (CUDA)

I found a function. The help gives: CUDALink`Internal`CUDAConstantMemoryCopy[mem1, mem2] copies constant memory to and from host memory. As of now I have not ...
6
votes
2answers
489 views

Are you able to use CUDA on Linux?

I am using Mathematica 10.2 on Ubuntu 15.04 x64. At first, I try to use CUDALink: Needs["CUDALink`"]; CUDAQ[] It returns ...
3
votes
2answers
291 views

CUDALink ran out of available memory

I have a problem with automatic GPU memory management when using CUDA. The situation is the following: I create a simple CUDA function that operates on a 2D array (image), which does not take much ...
3
votes
1answer
171 views

CreateLibrary for CUDA with NVCCCompiler

I am currently learning to use CUDA to speed up calculations. The book I am working with uses C code on the CPU to supply certain variables etc.. So I would like to compile the give code in ...
3
votes
0answers
112 views

Getting CUDALink (Toolkit 7.5) to work on Linux, Mathematica 10.0.2, GTX750

I want to make use of some CUDA functionality on my machine. It is running Gentoo Linux (64bit), Mathematica 10.0.2 on an Intel Xeon E5-1620v3 with a Geforce GTX750. So everything on the hardware/OS ...
3
votes
0answers
55 views

Monitor CUDA function

Is there a way to monitor CUDA function without bringing much performance reduction. For example, Map can be monitored by ...
3
votes
0answers
177 views

Mathematica will not detect NVIDIA Titan X for CUDA functions [closed]

I've run Needs["CUDALink`"] CUDAResourcesInstall[] which, after a long download, returns ...
7
votes
2answers
474 views

CUDAQ not working in Mathematica 10.2.0.0 on Windows 7 (using CUDA 7.5)

I have been trying to get CUDA to work in Mathematica for kernel development. I downloaded and installed Visual Studio 2013 Community and the latest NVIDIA developers toolkit 7.5 (in that order). ...
4
votes
0answers
101 views

errors in CUDA example

It seems that there are some errors in the documentation page Consider these functions in the documentation CUDA Programming. However, I'm not a expert in CUDA nor C, could you check whether these are ...
5
votes
2answers
406 views

CUDA 6.5, Mathematica 10.0.2, and Ubuntu 14.04

I have CUDA 6.5 working fine on Ubuntu 14.04. Mathematica recognizes the driver (Nvidia 340), but CUDAQ[] returns False and I cannot get any CUDA functions to work in Mathematica. I have created ...
7
votes
2answers
823 views

CUDALink not working on Linux-64 and Asus GTX460

On my hardware I have a CUDA enabled video card an ASUS GTX460, yet Mathematica does not seem to recognize this. I have: CUDA Toolkit 4.1 CUDA SDK 4.0 NVIDIA Driver 295.49 on Sabayon Linux 64 ...
3
votes
1answer
206 views

CUDAFunctionload error

I am trying to get CUDAFunctionLoad to work with Mathematica 9.0. I installed the latest clang and the Nvidia Tools 6.0. but I keep getting the error message: <...
5
votes
1answer
375 views

Volumetric Rendering of cylinder symmetric radial image

I would like to render a cylinder symmetric radial cross-section with Image3D. As an example one could use the propagation of a Bessel Beam through a Lens: Here the cylinder axis is the bottom of ...
5
votes
0answers
427 views

How to invert a matrix with 100 trillion elements?

I have a $10^{7}\times 10^{7}$ matrix with the following properties: it is sparse it is gamma-5 it is almost Hermitian. If $M$ is the matrix we are trying to invert, we know $M=A M^{\dagger} A$ ...
3
votes
0answers
192 views

Calling CUDA cuFFT

Following ybeltukov's excellent answers (see here and here) about how to access the CUDA library functions and interact with Mathematica through CUDAMemory, I tried to compile the code given in ...
2
votes
1answer
146 views

How to access directly the “CUDA Memory” address from another parallel kernel?

I work with CUDALink and have some small successes. I use direct calculation on GPU without using CPU (only for sanding commands for CUDA function). Until now I have stored on the hard drive with ...
1
vote
0answers
243 views

Can GPU (CUDA) speed up LinearSolve?

Is there a way to use GPU (CUDA) to speed up LinearSolve?
4
votes
0answers
295 views

Beginner CUDA: two dimensional blocks and two dimensional threads?

This is a follow up question to: CUDA: setting grid dimensions. The purpose of the question is to understand how Mathematica is interfacing with CUDA's architecture. I have a related question/request ...
4
votes
0answers
105 views

A simple experiment to understand CUDAFunctionLoad

In an attempt to answer my own question (Beginner CUDA: two dimensional blocks and two dimensional threads?). Please excuse the long post, it contains for examples I constructed as an experiment to ...
2
votes
0answers
100 views

Looking for a working mathematica CUDA port of NVIDIA's nbody.cu

I am trying to extend an example that is provided as one of NVIDIA's prototypical examples: http://docs.nvidia.com/cuda/cuda-samples/index.html#cuda-n-body-simulation I'm trying, but haven't been ...
1
vote
0answers
103 views

Why does the iteration not work here in cuda?

I tried to implement Jacobi method for 1D Poisson's equation using CUDALink. The kernel is (I use only 1 block): ...
3
votes
1answer
461 views

CUDA paclet and Mathematica 10.0.2 code problem

In Windows 8.1 64bit and Mathematica 10.0.2, I used the latest cuda paclet 10.0.1. However,following the sample code in CUDALink User Guide, the CUDAFunctionLoad returns an error. I can not figure ...
5
votes
1answer
204 views

CUDALink Error: A CUDALink kernel timed out?

I'm following the CUDALink tutorial [ http://reference.wolfram.com/language/CUDALink/tutorial/Introduction.html ] and everything is going fine until I get to the part that calls CUDADot on the ...
0
votes
0answers
79 views

CUDA functions cannot be compiled

i5-3210M, GT 630M; Windows 8.1 x64, Visual Studio 2013; CUDA 6.5 has been installed. One of the clues I found is that GT 630M didn't appear in the list of graphics cards supported by CUDALink which ...
16
votes
2answers
306 views

Combining images with CUDA

SMALL UPDATE: This question is left as unanswered, because none of the existing answers as of yet actually use CUDA (though, whilst being very useful). 2nd Edition: To make it a bit more clear, and ...
16
votes
1answer
710 views

How to use SparseArray in CUDA?

Sparse arrays are widely used in many scientific applications where memory and time are strictly limited. For a considerable speedup one can use CUDA. Since Mathematica 8 we can conveniently use CUDA ...
10
votes
1answer
579 views

calling CUDA library functions

Mathematica has some predefined CUDA functions, like CUDAMap, CUDAFourier, etc. My question is how can one call functions which are part of CUDA library but not part of predefined Mathematica ...
5
votes
1answer
660 views

CUDALink is not initialized

I've upgraded to Mathematica 9.0 on Ubuntu 12.04 with the latest Nvidia driver (304.64). I load CUDA by using, as usual, Needs["CUDALink`"]. ...
1
vote
1answer
375 views

CUDALink with Nvidia GTX770

We are running a Windows 7 machine with Nvidia GTX 770. According to this reference GPU Hardware: CUDA for Mathematica 9 is not supported on that hardware. Is there any way to get it running? <...
7
votes
1answer
648 views

make mathematica recognize CCompiler and compile CUDA code on remote Windows machine

I have set up a Mathematica remote kernel on a Windows 7 64 bit machine, which has Microsoft Visual Studio 2010 installed. When I start Mathematica on the windows machine Mathematica recognizes the C-...
6
votes
0answers
247 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 ...
2
votes
1answer
353 views

How to get CUDALink working on linux (Crunchbang Waldorf) with NVS 3100m

I am trying to get CUDALink working on my laptop. I am running Crunchbang "waldorf" which is based on Debian 7 "wheezy". I am a linux novice. The issue is that Mathematica can "see" the nVidia ...
5
votes
1answer
3k 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 ...
7
votes
2answers
1k views

Mathematica cannot find CUDA driver

I have successfully installed CUDA 5.0 on my Ubuntu 12.10, with driver 304.54, toolkit and samples. Running deviceQuery gives me a successful output: ...
7
votes
0answers
643 views

Poor CUDALink performance, when calling a kernel multiple times

When working on a project of mine I noticed that CUDALink shows very poor performance when calling CUDA kernels multiple times in a loop-construct. To demonstrate this I put together this little ...
2
votes
0answers
942 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 ...
6
votes
3answers
477 views

How to properly remove the CUDAResources paclet?

I have Mathematica 8.0.0.0 installed on my Mac, and while I tried to see what it could do with CUDA, it downloaded a large directory (~1 GB) named ...
0
votes
1answer
169 views

Remote Kernel and CUDALink

I have setup a remote kernel on my Mac, which connects to a more powerful Linux 64Bit Desktop. Mathematica is setup fine on the Linux machine. CUDA is also working fine and ...
1
vote
2answers
249 views

Image's pixels GPU colour classes splitting

How can I split in color classes, the pixels of an image that I load in Mathematica? I would an output like this: ...
1
vote
0answers
272 views

CUDA* commands are very slow on OS X and Mac

I have Mathematica 8.0.4.0 installed on my new MacBook Pro running OS X 10.8. I also have the latest CUDA drivers (and even the CUDA SDK) from nVIDIA. I've noticed that commands like CUDAQ[] take a ...
4
votes
1answer
350 views

CUDAQ[] returns False in version 9 while True in version 8

CUDA works in version 8 but not in version 9. Is there a way to fix the problem in version 9? I've installed the latest CUDA from the official website https://developer.nvidia.com/cuda-downloads
4
votes
1answer
320 views

How to troubleshoot CUDALink?

This is a follow-up question from linking the libraries for CUDALlink in Ubuntu 12.10. The tests that I execute (CUDAQ[], ...
24
votes
3answers
2k views

How to find the center of a circular pattern?

I am writing an algorithm that finds the center of 500 x 500 pixels images coming from a live feed from a camera at 50 Hz. So it has to be quick! The images are images of an optical field which looks ...
8
votes
1answer
239 views

Can CUDAVolumetricRender be combined with other 3D graphics?

I have volumetric data, which I can render using CUDAVolumetricRender[]. However, I cannot seem to find a way to combine it with other 3D graphics, such as adding a ...
10
votes
1answer
446 views

How to make a volume CUDA rendering isometric?

I just realized that the output of CUDAVolumetricRender[] uses (quite marked) perspective, which I do not want (for scientific data representation, it can be very ...
7
votes
2answers
358 views

Use of Cellular Automaton or Discrete Convolution to calculate Potts Energy of a 2D Matrix

In a project of Monte Carlo Modelling of Grain Growth (Link) one of the most costly subroutines is the calculation of the Potts-Energy of an Monte Carlo Grid cell by comparing the center cell value ...
9
votes
1answer
827 views

CUDALink not working on Mac OS X

On my MacBook Pro, I have a CUDA enabled video card, yet Mathematica does not seem to recognize this. For example, following the CUDALink Setup, I get ...