| View previous topic :: View next topic |
| Author |
Message |
kuldeep gupta
Joined: 11 Oct 2011 Posts: 41
|
Posted: Wed Oct 12, 2011 7:25 am Post subject: 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 |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Wed Oct 12, 2011 8:50 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
kuldeep gupta
Joined: 11 Oct 2011 Posts: 41
|
Posted: Fri Oct 14, 2011 9:42 am Post subject: compling problem |
|
|
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.. |
|
| Back to top |
|
 |
mat
Joined: 05 Dec 2006 Posts: 8
|
|
| Back to top |
|
 |
kuldeep gupta
Joined: 11 Oct 2011 Posts: 41
|
Posted: Fri Oct 14, 2011 8:29 pm Post subject: compiling problem |
|
|
thanks..
i did not know about it..I will read it first after that if i will have any doubt i will ask you. |
|
| Back to top |
|
 |
|