Skip to content

Commit b8bd55a

Browse files
committed
Added CMake configuration for Fugaku with LLVM 19
and also applied the following fix to xtensor: xtensor-stack/xtensor#2833 to resolve LLVM 19.
1 parent 906b46d commit b8bd55a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

cmake/fugaku-llvm19-cross.cmake

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# LLVM-19.1.4 cross compiler on Fugaku Login Node
3+
#
4+
# Seting up the environment with the following commands is needed:
5+
#
6+
# $ . /vol0004/apps/oss/llvm-v19.1.4/init.sh
7+
#
8+
set(CMAKE_SYSTEM_NAME Fugaku)
9+
set(CMAKE_SYSTEM_PROCESSOR aarch64)
10+
set(MPI_THREAD_MULTIPLE OFF CACHE BOOL "MPI thread multiple" FORCE)
11+
set(LLVM_LIB "/vol0004/apps/oss/llvm-v19.1.4/login_node/lib")
12+
13+
set(CMAKE_CXX_COMPILER "mpiclang++" CACHE FILEPATH "C++ compiler")
14+
set(CMAKE_CXX_FLAGS "-Wno-unused-command-line-argument \
15+
-mtune=a64fx -mcpu=a64fx -march=armv8.2-a+sve -msve-vector-bits=512 \
16+
-fopenmp -O3"
17+
CACHE STRING "C++ compiler flags")
18+
set(CMAKE_EXE_LINKER_FLAGS "-L${LLVM_LIB}" CACHE STRING "Linker flags")

0 commit comments

Comments
 (0)