Skip to content

Commit 25a92ce

Browse files
valassiQubitol
authored andcommitted
[hack_ihel6p3] fix googletest compilation flags for aarch64 (with Daniele Massaro)
1 parent 99dd111 commit 25a92ce

File tree

1 file changed

+4
-1
lines changed
  • epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu

1 file changed

+4
-1
lines changed

epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/cudacpp_test.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ THISDIR = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
77

88
# Host detection
99
UNAME_S := $(shell uname -s)
10+
UNAME_P := $(shell uname -p)
1011

11-
# Only add AVX2/FMA on non-mac hosts
12+
# Only add AVX2/FMA on non-mac and non-ARM hosts
1213
ifeq ($(UNAME_S),Darwin)
1314
GTEST_CMAKE_FLAGS :=
15+
else ifeq ($(UNAME_P),aarch64)
16+
GTEST_CMAKE_FLAGS :=
1417
else
1518
GTEST_CMAKE_FLAGS := -DCMAKE_CXX_FLAGS="-mavx2 -mfma"
1619
endif

0 commit comments

Comments
 (0)