Ah, in the Makefile I hadn’t set up the suffixes so there was no rule to build the .cuf file.
I do however have another question. When using CUDA in C, the command cudaMalloc would look like
cudaMalloc((void**)&rd, sizex); //for example
how would I call this in cudaFortran? I keep getting syntax errors when I try doing it in this fashion. I’m not particularly well versed in FORTRAN so I’m not sure how I would use this command. Thanks for the help!!
There are some subtle differences that have to do with Fortran allocatable semantics. Check out the section on allocating device and pinned arrays in the CUDA Fortran Programming Guide and Reference
Thanks! That helps a ton! I’ve been getting confused between the two languages. Which method would be preferable for allocating just variables (not arrays)?