PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

compiling problem
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
kuldeep gupta



Joined: 11 Oct 2011
Posts: 41

PostPosted: Wed Oct 12, 2011 7:25 am    Post subject: compiling problem Reply with quote

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
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Wed Oct 12, 2011 8:50 am    Post subject: Reply with quote

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
View user's profile
kuldeep gupta



Joined: 11 Oct 2011
Posts: 41

PostPosted: Fri Oct 14, 2011 9:42 am    Post subject: compling problem Reply with quote

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
View user's profile
mat



Joined: 05 Dec 2006
Posts: 8

PostPosted: Fri Oct 14, 2011 12:01 pm    Post subject: Reply with quote

Hi kuldeep gupta,

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

- Mat
Back to top
View user's profile
kuldeep gupta



Joined: 11 Oct 2011
Posts: 41

PostPosted: Fri Oct 14, 2011 8:29 pm    Post subject: compiling problem Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group