How to convert C# code to CUDAfy
CUDA is wisely use because it get less computation time. CUDA suits for more computational project like adding very large matrix. But thing is it can use only C and C++ languages. Converting C# into CUDAfy language is little bit difficult because CUDAfy did not have any inbuilt functions. So we have to implement the every function that we need. CUDAfy only allowed use primitive data type arrays. In this case we have to implement functions and other data types using primitive types arrays. Primitive data types are boolean , byte , char , short , int , long , float and double. In this blog I tried to implement some function and data types in C# to CUDAfy. First you make sure that you have working environment of CUDAfy, Follow this link for setting CUDAfy environment in your machine. http://cudafy.blogspot.com/2017/06/use-cuda-for-c-language.html Firstly I create a CUDAfy Tuple data type.Open a new C# class and add these three lines in top of the class. After this ...