Unable to compile CUDA Fortran code on visual studio

Hi,
I am a new user for CUDA Fortran. When I build my project, I am getting following compilation errors:
Error 1 unresolved external symbol MAIN referenced in function _main f90main.obj
Error 2 1 unresolved externals Z:\fall2010\HPC\project\picudanew\picudanew\Win32\Debug\picudanew.exe
I am trying to use Emulation mode .
Regards
Kaustubh

Hi Kaustubh,

You’re missing a main program. You need to add routine like:

program my_program_name

! declare some variables
! do some work
! call your CUDA Fortran routines

end program my_program_name

Hope this helps,
Mat

Hi.
Thanks a lot. It works now.
Regards
Kaustubh