|
SOLUTIONS
|
CUDALINK SYMBOL
CUDAMemoryCopyToDevice
CUDAMemoryCopyToDevice[mem]
force copies CUDAMemory from the CPU to the GPU.
DetailsDetails
- The CUDALink application must be loaded using Needs["CUDALink`"].
- CUDAMemory is returned by CUDAMemoryLoad or CUDAMemoryAllocate.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
First, load the CUDALink application:
| In[1]:= |
This loads a Range[10] list into CUDALink:
| In[2]:= |
| Out[2]= |
This gives information about the returned memory; notice how the
is
:
| In[3]:= |
| Out[3]= | ![]() |
This forces a copy from the host memory (CPU) to the device memory (GPU):
| In[4]:= |
| Out[4]= |
This gives information about the returned memory; notice how both
and
are
:
| In[5]:= |
| Out[5]= | ![]() |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


