From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to do operation when array is copied to CUDA memory??

I copied array to CUDA memory using Copy 1D array to CUDA memory.vi block diagram but its output node has only destRef out and error out..What does destRef gives and how to access the array data in GPU to do mathematical operations? I have cuda 2.0 installed especially to use CUDA in LabView 8.6. Plz help me out...

0 Kudos
Message 1 of 4
(2,187 Views)

destRef is destination reference and is used for specifying the destination.

 

A user manual for commands can be found here http://niweb.natinst.com/confluence/download/attachments/54200285/NVIDIA_CUDA_Programming_Guide_1.1....

Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,157 Views)

Whats the use of specifying the destination? Can we get the value of array in that destination? I need to do mathematical operation on arrays in GPU. Please help me out...Also the link you've posted does not work. Can you post an alternate link please?

0 Kudos
Message 3 of 4
(2,152 Views)

Here's a link to an even better article: https://decibel.ni.com/content/docs/DOC-6064

 

It also has some examples that should help you.

 

Also, this is the explanation for destRef

 

"Common use case where GPU computing is successful involve user-define CUDA functionsthat consume one or more arrays of data. In some cases, this storage on the GPU deviceand be used between CUDA calls so the allocation is performed once before the first callto the function. Herein lies the necessity for data references that are tied to a computecontext."

 

 

-Lt. Daniel

Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,142 Views)