Skip to content

Commit

Permalink
c++17 instead of c++14
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang committed Aug 25, 2023
1 parent 57c8502 commit 388c6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion namd/config.patch
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ index 2bbb3e9a..ff0debb6 100755
+ if (( "$use_colvar_torch" )); then
+ echo "TORCHDIR = $TORCH_PREFIX" >> Make.config
+ echo 'TORCHINCFLAGS = $(COPTI)$(TORCHDIR)/include $(COPTI)$(TORCHDIR)/include/torch/csrc/api/include' >> Make.config
+ echo 'EXTRACOLVARSFLAGS = -std=c++14 -DTORCH $(TORCHINCFLAGS)' >> Make.config
+ echo 'EXTRACOLVARSFLAGS = -std=c++17 -DTORCH $(TORCHINCFLAGS)' >> Make.config
+ echo 'EXTRALINKLIBS = -Wl,-rpath,$(TORCHDIR)/lib -L$(TORCHDIR)/lib -ltorch -ltorch_cpu -lc10 -ltorch' >> Make.config
+ fi
if (( $use_debug )); then
Expand Down

0 comments on commit 388c6be

Please sign in to comment.