Skip to content

Commit

Permalink
Fix examples/tutorials compilation with NVHPC SDK 24.9
Browse files Browse the repository at this point in the history
  • Loading branch information
nmnobre committed Oct 14, 2024
1 parent 9f2f1a3 commit 1bf7685
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/gocean/eg5/extract/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ $(NAME): $(INF_LIB) $(EXTRACT_DIR)/$(LIB_NAME) $(KERNELS) alg.o psy.o
#TODO #1757: $(INF_LIB) is required because of the meta-data in the
# kernel - once this is fixed, $(INF_LIB) can be removed.
$(DRIVER_INIT).$(TYPE): $(KERNELS) $(DRIVER_INIT).o
$(F90) $(KERNELS) $(DRIVER_INIT).o -o $(DRIVER_INIT).$(TYPE) \
$(F90) $(F90FLAGS) $(KERNELS) $(DRIVER_INIT).o -o $(DRIVER_INIT).$(TYPE) \
$(INF_LIB) $(EXTRACT_DIR)/$(LIB_NAME) $(LDFLAGS)

#TODO #1757: $(INF_LIB) is required because of the meta-data in the
# kernel - once this is fixed, $(INF_LIB) can be removed.
$(DRIVER_UPDATE).$(TYPE): $(KERNELS) $(DRIVER_UPDATE).o
$(F90) $(KERNELS) $(DRIVER_UPDATE).o -o $(DRIVER_UPDATE).$(TYPE) \
$(F90) $(F90FLAGS) $(KERNELS) $(DRIVER_UPDATE).o -o $(DRIVER_UPDATE).$(TYPE) \
$(INF_LIB) $(EXTRACT_DIR)/$(LIB_NAME) $(LDFLAGS)

# The dl_esm_inf library
Expand Down
2 changes: 1 addition & 1 deletion examples/nemo/eg5/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ run: compile
IT=2 JPI=10 JPJ=10 JPK=5 ./traadv-$(TYPE).exe

traadv-$(TYPE).exe: psy.o $(EXTRACT_DIR)/$(LIB_NAME)
$(F90) psy.o -o traadv-$(TYPE).exe $(EXTRACT_DIR)/$(LIB_NAME) $(LDFLAGS)
$(F90) $(F90FLAGS) psy.o -o traadv-$(TYPE).exe $(EXTRACT_DIR)/$(LIB_NAME) $(LDFLAGS)

transform: kernels

Expand Down
2 changes: 1 addition & 1 deletion tutorial/practicals/nemo/2_nemo_profiling/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ transform:
-o output_3.f90 -l output tra_adv_mod.F90

compile: transform $(KERNELS) output.o solutions/runner.o
$(F90) $(KERNELS) output.o solutions/runner.o -o $(NAME) \
$(F90) $(F90FLAGS) $(KERNELS) output.o solutions/runner.o -o $(NAME) \
$(PROFILE_WRAPPER_LINK) $(PROFILE_LINK)

# Only used for the compile CI target to compile the solution file
Expand Down

0 comments on commit 1bf7685

Please sign in to comment.