Build the sample cufinfo.cuf
Then:
Linking…
ConsoleApp.obj : error LNK2019: unresolved external symbol cudagetdevicecount_ referenced in function MAIN_
ConsoleApp.obj : error LNK2019: unresolved external symbol cudagetdeviceproperties_ referenced in function MAIN_
ConsoleApp.obj : error LNK2001: unresolved external symbol cudafor_
Hi SWL_EGGBABY,
I’m guessing you’re using Portland Visual Fortran (PVF)? In this case, you need to set the project’s configuration properties language to CUDA Fortran. To do this, right-mouse click on your project (under the ‘Solution Explorer’ window) and select ‘properties’. This open the properties window. Next select the ‘Fortran->Language’ tab, find the line for ‘CUDA Fortran’ and select ‘yes’ in the drop-down box.
Hope this helps,