01-04-2022 11:06 AM
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 ,
Solved! Go to Solution.
01-04-2022 11:24 AM
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)?
01-04-2022 11:28 AM
Indeed , that was the issue . Thanks for your input