Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffhammond committed Aug 25, 2022
1 parent b1cbd6f commit 0fc9e4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fortran/make.inc.nvhpc
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ ifeq ($(findstring Pascal,$(NVARCH)),Pascal)
$(info Pascal detected)
GPU = cc60,cc61
endif
ifeq ($(shell which jetson_clocks && echo 1),1)
ifeq ($(shell which jetson_clocks > /dev/null && echo 1),1)
$(info Jetson AGX Orin detected)
GPU = ccn87,cc86
# figure out Xavier later
#GPU = cc72
endif
ifeq ($(GPU),)
$(error Your GPU architecture could not be detected. Set it manually.)
endif
GPUFLAG = -gpu=$(GPU)

TARGET=gpu
Expand Down

0 comments on commit 0fc9e4a

Please sign in to comment.