23lukia@tongji_edu_cn
New Member
I'm a student of Tongji University. My undegraduate graduation project topic is about the application of GPU computation in CESM. I encounter a problem when I compile .cuf file and .F90 file,
I use PGI with CUDA FORTRAN library to compile CESM, where A.F90 depends on B.F90, B.F90 depends on C.cuf(a new file which I added in models). If I compile them independently, they cannot be compiled into .mod file since they haven't program keyword. The log shows that Unable to open module file C.mod or undefined reference of C.mod.
How can I compile the .cuf file with other .F90 file? Should I modify the Makefile?
I use PGI with CUDA FORTRAN library to compile CESM, where A.F90 depends on B.F90, B.F90 depends on C.cuf(a new file which I added in models). If I compile them independently, they cannot be compiled into .mod file since they haven't program keyword. The log shows that Unable to open module file C.mod or undefined reference of C.mod.
How can I compile the .cuf file with other .F90 file? Should I modify the Makefile?