i’am taking a course in Advanced artificial intelligence,and i must learn CUDA programming,and i saw in many website cuda examples,but i’am confused about something.my professor told me that cuda is similar to c but no for loops for example
and in all the documentation i open from Nvidia and other website i only can see CUDA C example.so what i want to understand where to start programming CUDA not CUDA C or CUDA C++.
also is there’s any reference which helps me to start from scratch.like how to declare variables.how to print on screen how the structure of the program.how to make a function how to make loop w.r.t CUDA not the for loop of the C ore C++ Language.
If you would have look harder, you would have found out that CUDA isn’t a programming language (like C or C++). CUDA is the platform of parallel programming for the NVIDIA cards. CUDA C++ or CUDA C are alternatives for you, so you can use CUDA(platform of parallel programming for the NVIDIA cards). There is also pyCUDA for example, so you could take advantage of CUDA through python. The programming language is up to you.
If you just want to code CUDA through examples, there is plenty in the internet, and yes, you have to search for CUDA C or CUDA C++. But if you want to understand the platform, and also code, I recommend two books: the one with a lot of examples, and from NVIDIA: CUDA by Example and the other is Programming Massively Parallel Processors for a more detailed and well-explained book.