LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a C DLL(CUDA) in LabVIEW

Solved!
Go to solution

Hello Everyone ,

 

I am trying to call a simple array addition function written in CUDA  C inside LabVIEW 64 . The function works as expected when used in a test C program.

 

This is the function prototype :

 

EXTERN MY_CUDA_SUM_EXPORT void myCUDASumInit(void);
EXTERN MY_CUDA_SUM_EXPORT void myCUDASumDestroy(void);
EXTERN MY_CUDA_SUM_EXPORT void myCUDASumProcess(int *c, const int *a, const int *b, int size);

 

I have attached a snippet of the VI and the DLL .


A and B are the 2 arrays which need to be added ; the result is available in array C . My issue is that , no matter what I do the value returned by C is always that of array B .

 

Can someone help me with this issue please .

 

Have a nice day ,

Download All
0 Kudos
Message 1 of 3
(1,604 Views)
Solution
Accepted by topic author SP_TT

Is it possible that your output is wired to the "b" node instead of the "c" node (which I think is at the top of the process block)?

0 Kudos
Message 2 of 3
(1,599 Views)

Indeed , that was the issue . Thanks for your input

0 Kudos
Message 3 of 3
(1,591 Views)