compiling problem

i m trying to build matmul.cuf in PGI CUDA FORTRAN in visual studio 2008
but i got these errors…


Source1.obj : error LNK2019: unresolved external symbol _cudaSetupArgument@12 referenced in function _MMUL_MOD_MMUL_KERNEL__ENTRY@24
Source1.obj : error LNK2019: unresolved external symbol _cudaLaunch@4 referenced in function _MMUL_MOD_MMUL_KERNEL__ENTRY@24
Source1.obj : error LNK2019: unresolved external symbol _pgf90_dev_alloc03 referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol _pgf90_dev_copyin referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol _pgf90_dev_configure_call referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol _CUDATHREADSYNCHRONIZE@0 referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol _pgf90_dev_copyout referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol _pgf90_dev_dealloc03 referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol _pgf90_dev_allocated referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol ___cudaRegisterFatBinary@4 referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol ___cudaRegisterFunction@40 referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol ___cudaUnregisterFatBinary@4 referenced in function _MMUL_MOD_MMUL@24
Source1.obj : error LNK2019: unresolved external symbol _CUDASETDEVICE@4 referenced in function MAIN
Source1.obj : error LNK2001: unresolved external symbol _CUDAFOR



i m very new to cuda fortran so please tell me solution in detail

Hi kuldeep gupta,

These errors usually occur the the “-Mcuda” option was not added to the link, and hence the PGI Cuda libraries were not added. The most likely cause is due to not setting the Fortran language to CUDA Fortran under the project’s property page. Users sometimes only set this only on individual files and not the project.

Hope this helps,
Mat

thanks,
actually i am from electrical background but in my M. Tech. project i am using CUDA FORTRAN…
so can you please tell me the steps to make a new project in visual studio 2008 for CUDA Fortran…

Hi kuldeep gupta,

Have you read the PVF User’s guide? http://www.pgroup.com/doc/pvfug.pdf

  • Mat

thanks…
i did not know about it…I will read it first after that if i will have any doubt i will ask you.

thanks alot…
the user’s guide is goood…
i got correct answer in my program.
thanks again…