Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

A question about CESM compile rules

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?
 
Top