Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gpu]

Questions on using Mathematica functionality to take advantage of a Graphics Processing Unit, a special stream processor designed for highly parallel computer graphics operations.

0
votes
0answers
31 views

OpenCL for symbolic matrix manipulations [on hold]

I want to calculate a matrix multiplication of matrices with a size of 500 for example, but all elements are symbolic. Since it is a bit slow with a normal way, and gets slower and slower with ...
0
votes
0answers
28 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 ...
1
vote
0answers
31 views

Dimension of Grid in CUDAFunctionLoad for Matrix Multiplication

I want to do nonsquare matrix multiplication using CUDA The input is two matrices: a and b ...
0
votes
0answers
37 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 ...
4
votes
2answers
95 views

OpenCL compute large matrices

I am trying to compute a big matrix $C$, of size $M \times N$, using the elements of the input matrices $A$ and $B$. The matrix $A$ is of size $M\times4$ and the matrix $B$ is of the size $2\times N$. ...
2
votes
0answers
48 views

Whether Parallel computing or Gpu Computing can be performed for mathematica built-in functions? [on hold]

I want to know how to run my mathematica code using GPU or parallel computing without any special coding besides using the original Mathematica code.
2
votes
2answers
112 views

Why doesn't NetTrain use GPU as TargetDevice?

I have a NetTrain call with the following parameters: tNet = NetTrain[inVecs -> outVecs, TargetDevice -> "GPU"]; But ...
2
votes
1answer
40 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: ...
1
vote
1answer
81 views

Sparse matrices dot multiplication

I have two huge sparse matrices, and I am interested in dot multiplication them. But I have a memory issue so a notebook is a shutdown. I am using the 11.3 version. Any suggestion on how to avoid ...
6
votes
1answer
373 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 ...
0
votes
0answers
34 views

How to get command line for OpenCLFunctionLoad?

Is there a way how to get the command used to compile my OpenCL kernel, when I use OpenCLFunctionLoad[]? When I use ...
0
votes
0answers
226 views

Does Mathematica Rely More on CPU or GPU

I am surprised no one asked this before. I am getting a new laptop and I will be mainly using Mathematica more than anything else on it. When selecting a laptop, should I put more emphasis on CPU or ...
1
vote
1answer
98 views
10
votes
1answer
173 views

Can one use NetTrain with two Nvidia GPUs?

I am thinking of buying another GPU to accelerate my training. Will I be able to call NetTrain with both GPUs ("TargetDevice"-> {"GPU", All})? Or would it be ...
3
votes
1answer
198 views

Why the GPU will cost more time when train the net

I'm in Windows 10 $Version 11.2.0 for Microsoft Windows (64-bit) (September 11, 2017) ...
11
votes
1answer
502 views

How to use an external GPU to train neural networks in Mathematica?

Taking steps in the uncharted territories of eGPUs, I have installed an NVIDIA GeForce Titan Xp GPU on an eGPU enclosure (Mantiz MZ-02) and have connected it to my laptop (HP Spectre x360 - 15-bl075nr ...
6
votes
1answer
302 views

Why I can only train some NetModel with GPU

I can train NetModel's models with CPU. I'm on Windows 10 with Mathematica 11.2 GPU is GTX1080 with 8G memory. My datasets is 1000 pictures with 224*224. I can train some NetModel like ...
4
votes
0answers
137 views

NetTrain throws internal error with large images as input (GPU)

I am training a convolutional Network with a dataset consisting of Images of the same size on my GPU (200x100 pixels, GTX 1080Ti). The images are previously resized with ...
2
votes
1answer
217 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 ...
4
votes
0answers
139 views

NetTrain with External GPU?

I'd like to use the new Neural Networks functionalities in v11 on my Macbook Pro, unfortunately, most macs do not have the supported Nvidia cards. However, there is the option for using an external E-...
1
vote
0answers
126 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 ...
5
votes
1answer
451 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 ...
1
vote
0answers
238 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: ...
4
votes
1answer
204 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 ...
5
votes
0answers
155 views

GPU Acceleration and the Predict function [duplicate]

With the Mathematica Predict function, does it automatically use GPU acceleration? For example, with NetTrain, one has to specify TargetDevice->"GPU" to show they want to perform the calculation on ...
7
votes
1answer
315 views

TargetDevice->“GPU” doesn't work in version 11.1 on mac

It seems that TargetDevice->"GPU" doesn't work for me in Mathematica version 11.1. I get an error message: ...
7
votes
2answers
537 views

TargetDevice->“GPU” fails even though a CUDA GPU exists

Similar question has already been asked, but in that case, the method didn't work due to OpenCL compatibility. I have an older CUDA card. Worked great with CUDALink in Mathematica 8: ...
2
votes
0answers
57 views

NetTrain with OpenCL [duplicate]

When working with NetTrain I get the following error: TargetDevice -> {GPU,0} could not be used, please ensure that you have a compatible graphics card and have installed CUDA drivers. Is it ...
12
votes
1answer
752 views

Configuring GPU for NetTrain

I currently have access to a system with two GPUs: GeForce GTX 1080 and Tesla K40c I would like to use this machine for training neural networks in Mathematica. When using the option ...
7
votes
1answer
505 views

Which GPUs does NetTrain work with?

NetTrain's option TargetDevice -> "GPU" works for old macbooks that have GEForce GT 750m cards (like mine), but what about other nvidia cards? Does it (or will ...
1
vote
0answers
62 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 ...
1
vote
0answers
357 views

Workstation specification for Mathematica programming [closed]

I'm interested in buying a new workstation for my lab and in the process I encountered a lot of options which some I did not fully understand. The main function this workstation is for numerical ...
4
votes
1answer
410 views

Mathematica 10 enables discrete GPU

When the kernel is running, the discrete GPU is enabled automatically and battery life plummets, even though my code uses no CUDA or OpenCL functions. Is it possible to prevent that from happening? ...
1
vote
1answer
92 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: ...
2
votes
0answers
511 views

Can GPU (CUDA) speed up LinearSolve?

Is there a way to use GPU (CUDA) to speed up LinearSolve? GPU Cuda
6
votes
1answer
174 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 ...
3
votes
0answers
185 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 ...
5
votes
0answers
790 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 ...
1
vote
0answers
107 views

How to select default graphics device for charting?

Is there a way to tell Mathematica to use a specific graphics device for charting? My laptop has two graphics devices; an on-board Intel chip and a Nvidia graphics card. I noticed in Mathematica's ...
15
votes
2answers
394 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 ...
0
votes
0answers
57 views

Automatic Cuda/CPU code; Fast programme run [duplicate]

I have developed my thesis codes by means of Mathematica software in a .nb file format. Despite using the available Parallel code capabilities and doing all the numerical integrations by means of ...
5
votes
1answer
4k 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 ...
1
vote
1answer
542 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? <...
2
votes
0answers
1k 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 ...
24
votes
0answers
1k views

Nonlinear least squares on a GPU with Mathematica 9

Update: A Mathematica wrapper for (https://github.com/zitmen/cuLM) should allow for us to directly implement the Levenberg-Marquardt algorithm in CUDA for nonlinear least squares fitting. In a ...
6
votes
1answer
3k views

OpenCL Dot Product

I have to calculate billions of dot products. My current implementation uses Compile to generate C code and it's very fast (10s ...
15
votes
1answer
1k views

GPU user experiences

Edit Thanks to all who have responded! I now have plenty of information on the GeForce 650M GPU as found in most new, mid-range Mac laptops; the Mandelbrot code below runs in comfortably under a ...
3
votes
1answer
204 views

How do I fix Needs[“OpenCLLink`”] failure?

In Mathematica 8.0.4 under Mac OS X 10.8.2, when I evaluate Needs["OpenCLLink`"] I get error ...
3
votes
1answer
746 views

Are there any openCL test suites?

I have a new ATI gpu that I have been trying on 3 different distributed computing projects. I get errors on each work unit. The errors indicate No Protocol which could be caused by a bad environment ...