Skip to content

Commit

Permalink
Update CUDA flags, remove unneeded Fortran
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPincus committed Nov 8, 2024
1 parent e8edd92 commit cc66fca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitlab/levante.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ variables:
# Core variables:
FC: nvfortran
CUDACXX: nvcc
# Flags used in building Icon
CUDAFLAGS: -arch=sm_80 -g -O3 -expt-relaxed-constexpr -DNDEBUG
# Convenience variables:
VERSION_FCFLAGS: --version
NFHOME: /sw/spack-levante/netcdf-fortran-4.5.4-syv4qr
Expand Down
11 changes: 2 additions & 9 deletions build/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
#!/usr/bin/env make

#
# Compiler variables FC, FCFLAGS must be set in the environment
#
# Make all the libraries though we'll only use the interface + kernels
all: librtecudakernels.a librrtmgpcudakernels.a

COMPILE = $(FC) $(FCFLAGS) $(FCINCLUDE) -c
%.o: %.F90
$(COMPILE) $<
CUDAFLAGS ?= "-O3 -gopt -DRTE_RRTMGP_GPU_MEMPOOL_CUDA -acc -cuda"
COMPILE_CU = $(CUDACXX) -c $(CUDAFLAGS)

COMPILE_CU = $(CUDACXX) -c -O3 -gopt -DRTE_RRTMGP_GPU_MEMPOOL_CUDA -acc -cuda

%.o: %.cu
$(COMPILE_CU) $<
Expand Down

0 comments on commit cc66fca

Please sign in to comment.