Skip to content

Set -DTARGET_CPU for IDG builds on RISC-V - #347

Merged
bedroge merged 5 commits into
EESSI:mainfrom
casparvl:fix_IDG_on_RISCV
Nov 19, 2026
Merged

bedroge merged 5 commits into
EESSI:mainfrom
casparvl:fix_IDG_on_RISCV

Conversation

@casparvl

Copy link
Copy Markdown
Contributor

Change or set -DTARGET_CPU to 'rv64gc -mabi=lp64d' for our RISCV generic target for IDG builds. Note that the IDG build system passes this as argument to -march, so we effectively get -march=rv64gc -mabi=lp64d this way.

Tested on RISC-V in a debugging shell:

eb-shell> cmake -DCMAKE_INSTALL_PREFIX=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/IDG/1.3.0-foss-2026.1 -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_SYSROOT=/cvmfs/software.eessi.io/versions/2026.06/compat/linux/riscv64 -DCMAKE_C_COMPILER=/tmp/eb-d6asjol5/eb-663d1dxa/tmpd6498862/rpath_wrappers/gcc_wrapper/gcc -DCMAKE_CXX_COMPILER=/tmp/eb-d6asjol5/eb-663d1dxa/tmpd6498862/rpath_wrappers/gxx_wrapper/g++ -DCMAKE_Fortran_COMPILER=/tmp/eb-d6asjol5/eb-663d1dxa/tmpd6498862/rpath_wrappers/gfortran_wrapper/gfortran -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DPYTHON_EXECUTABLE=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/Python/3.14.2-GCCcore-15.2.0/bin/python -DPython_EXECUTABLE=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/Python/3.14.2-GCCcore-15.2.0/bin/python -DPython3_EXECUTABLE=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/Python/3.14.2-GCCcore-15.2.0/bin/python -DBOOST_ROOT=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/Boost/1.90.0-GCCcore-15.2.0 -DBoost_NO_SYSTEM_PATHS=ON -DBUILD_WITH_MPI=ON -DBUILD_WITH_PYTHON=ON -DBUILD_WITH_DEMOS=ON  /tmp/eessibot/easybuild/build/IDG/1.3.0/foss-2026.1/IDG
-- Performing Test COMPILER_SUPPORTS_TARGET_CPU
-- Performing Test COMPILER_SUPPORTS_TARGET_CPU - Failed
CMake Error at external/aocommon/CMake/SetTargetCPU.cmake:42 (message):
  The compiler doesn't support 'native' as target CPU architecture.
Call Stack (most recent call first):
  CMakeLists.txt:119 (include)


-- Configuring incomplete, errors occurred!
eb-shell> vi CMakeLists.txt
eb-shell> ls
CMakeCache.txt  CMakeFiles  _deps
eb-shell> vi CMakeFiles/
3.31.11/                CMakeConfigureLog.yaml  CMakeScratch/           cmake.check_cache       pkgRedirects/
eb-shell> vi CMakeFiles/^C
eb-shell> vi /tmp/eessibot/easybuild/build/IDG/1.3.0/foss-2026.1/IDG/CMakeLists.txt
eb-shell> vi /tmp/eessibot/easybuild/build/IDG/1.3.0/foss-2026.1/IDG/CMakeLists.txt
eb-shell> vi /tmp/eessibot/easybuild/build/IDG/1.3.0/foss-2026.1/IDG/external/aocommon/CMake/SetTargetCPU.cmake
eb-shell> cmake  -DTARGET_CPU="rv64gc -mabi=lp64d" -DCMAKE_INSTALL_PREFIX=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/IDG/1.3.0-foss-2026.1 -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_SYSROOT=/cvmfs/software.eessi.io/versions/2026.06/compat/linux/riscv64 -DCMAKE_C_COMPILER=/tmp/eb-d6asjol5/eb-663d1dxa/tmpd6498862/rpath_wrappers/gcc_wrapper/gcc -DCMAKE_CXX_COMPILER=/tmp/eb-d6asjol5/eb-663d1dxa/tmpd6498862/rpath_wrappers/gxx_wrapper/g++ -DCMAKE_Fortran_COMPILER=/tmp/eb-d6asjol5/eb-663d1dxa/tmpd6498862/rpath_wrappers/gfortran_wrapper/gfortran -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DPYTHON_EXECUTABLE=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/Python/3.14.2-GCCcore-15.2.0/bin/python -DPython_EXECUTABLE=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/Python/3.14.2-GCCcore-15.2.0/bin/python -DPython3_EXECUTABLE=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/Python/3.14.2-GCCcore-15.2.0/bin/python -DBOOST_ROOT=/cvmfs/software.eessi.io/versions/2026.06/software/linux/riscv64/generic/software/Boost/1.90.0-GCCcore-15.2.0 -DBoost_NO_SYSTEM_PATHS=ON -DBUILD_WITH_MPI=ON -DBUILD_WITH_PYTHON=ON -DBUILD_WITH_DEMOS=ON  /tmp/eessibot/easybuild/build/IDG/1.3.0/foss-2026.1/IDG
-- Performing Test COMPILER_SUPPORTS_TARGET_CPU
-- Performing Test COMPILER_SUPPORTS_TARGET_CPU - Success

Will test in EESSI/software-layer#1929

…ric target for IDG builds. Note that the IDG build system passes this as argument to -march, so we effectively get -march=rv64gc -mabi=lp64d this way.
casparvl pushed a commit to casparvl/software-layer that referenced this pull request Nov 16, 2026
Comment thread eb_hooks.py Resolved
@casparvl

Copy link
Copy Markdown
Contributor Author

Tried this in an interactive debugging session, it worked:

== Running post-easyblock hook...
== Build succeeded for 1 out of 1 (total: 14 mins 58 secs)
== Summary:
   * [SUCCESS] IDG/1.3.0-foss-2026.1
== Temporary log file(s) /tmp/eb-8aqf19gj/easybuild-nxth39fh.log* have been removed.
== Temporary directory /tmp/eb-8aqf19gj has been removed.

@bedroge bedroge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, successfully used in EESSI/software-layer#1929 (comment).

@bedroge

bedroge commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx
bot: build repo:eessi.io-2025.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx
bot: build repo:eessi.io-2026.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx

@eessi-bot-deucalion

eessi-bot-deucalion Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

New job on instance eessi-bot-deucalion for repository eessi.io-2023.06-software
Building on: a64fx
Building for: aarch64/a64fx
Job dir: /home/eessibot/new-bot/jobs/2026.11/pr_347/2251383
Commit SHA: 2f4a81d

date job status comment
Nov 19 15:51:34 UTC 2026 submitted job id 2251383 awaits release by job manager
Nov 19 15:52:33 UTC 2026 released job awaits launch by Slurm scheduler
Nov 19 15:53:40 UTC 2026 running job 2251383 is running
Nov 19 16:04:13 UTC 2026 finished
😁 SUCCESS (click triangle for details)
Details
✅ job output file slurm-2251383.out
✅ no message matching FATAL:
✅ no message matching ERROR:
✅ no message matching FAILED:
✅ no message matching required modules missing:
✅ found message(s) matching No missing installations
✅ found message matching .tar.* created!
Artefacts
eessi-2023.06-software-linux-aarch64-a64fx-17951038380.tar.zstsize: 0 MiB (38447 bytes)
entries: 1
modules under 2023.06/software/linux/aarch64/a64fx/modules/all
no module files in tarball
software under 2023.06/software/linux/aarch64/a64fx/software
no software packages in tarball
reprod directories under 2023.06/software/linux/aarch64/a64fx/reprod
no reprod directories in tarball
other under 2023.06/software/linux/aarch64/a64fx
no other files in tarball
Nov 19 16:04:13 UTC 2026 test result
😁 SUCCESS (click triangle for details)
ReFrame Summary
[ SKIP ] ( 1/10) Skipping test: nodes in this partition only have 30720 MiB memory available (per node) according to the current ReFrame configuration, but 49152 MiB is needed
[ SKIP ] ( 2/10) Skipping test: nodes in this partition only have 30720 MiB memory available (per node) according to the current ReFrame configuration, but 49152 MiB is needed
[ SKIP ] ( 3/10) Skipping test: nodes in this partition only have 30720 MiB memory available (per node) according to the current ReFrame configuration, but 49152 MiB is needed
[ SKIP ] ( 4/10) Skipping test: nodes in this partition only have 30720 MiB memory available (per node) according to the current ReFrame configuration, but 49152 MiB is needed
[ OK ] ( 5/10) EESSI_LAMMPS_lj %device_type=cpu %module_info=('BotBuildTests:a64fx', 'default', 'LAMMPS/2Aug2023_update2-foss-2023a-kokkos') %scale=1_node /a7d4ddbc @BotBuildTests:a64fx+default
P: perf: 575.86 timesteps/s (r:0, l:None, u:None)
[ OK ] ( 6/10) EESSI_LAMMPS_lj %device_type=cpu %module_info=('BotBuildTests:a64fx', 'default', 'LAMMPS/29Aug2024-foss-2023b-kokkos') %scale=1_node /60400152 @BotBuildTests:a64fx+default
P: perf: 578.508 timesteps/s (r:0, l:None, u:None)
[ OK ] ( 7/10) EESSI_OSU_pt2pt_CPU %benchmark_info=mpi.pt2pt.osu_latency %module_info=('BotBuildTests:a64fx', 'default', 'OSU-Micro-Benchmarks/7.2-gompi-2023b') %scale=1_node /e1b5de1d @BotBuildTests:a64fx+default
P: latency: 2.3 us (r:0, l:None, u:None)
[ OK ] ( 8/10) EESSI_OSU_pt2pt_CPU %benchmark_info=mpi.pt2pt.osu_latency %module_info=('BotBuildTests:a64fx', 'default', 'OSU-Micro-Benchmarks/7.1-1-gompi-2023a') %scale=1_node /8b341075 @BotBuildTests:a64fx+default
P: latency: 1.23 us (r:0, l:None, u:None)
[ OK ] ( 9/10) EESSI_OSU_pt2pt_CPU %benchmark_info=mpi.pt2pt.osu_bw %module_info=('BotBuildTests:a64fx', 'default', 'OSU-Micro-Benchmarks/7.2-gompi-2023b') %scale=1_node /5d554c48 @BotBuildTests:a64fx+default
P: bandwidth: 8741.71 MB/s (r:0, l:None, u:None)
[ OK ] (10/10) EESSI_OSU_pt2pt_CPU %benchmark_info=mpi.pt2pt.osu_bw %module_info=('BotBuildTests:a64fx', 'default', 'OSU-Micro-Benchmarks/7.1-1-gompi-2023a') %scale=1_node /0d7a6936 @BotBuildTests:a64fx+default
P: bandwidth: 8748.32 MB/s (r:0, l:None, u:None)
[ PASSED ] Ran 6/10 test case(s) from 10 check(s) (0 failure(s), 4 skipped, 0 aborted)
Details
✅ job output file slurm-2251383.out
✅ no message matching ERROR:
✅ no message matching [\s*FAILED\s*].*Ran .* test case
Nov 19 18:04:15 UTC 2026 uploaded transfer of eessi-2023.06-software-linux-aarch64-a64fx-17951038380.tar.zst to S3 bucket succeeded

@eessi-bot-deucalion

eessi-bot-deucalion Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

New job on instance eessi-bot-deucalion for repository eessi.io-2025.06-software
Building on: a64fx
Building for: aarch64/a64fx
Job dir: /home/eessibot/new-bot/jobs/2026.11/pr_347/2251384
Commit SHA: 2f4a81d

date job status comment
Nov 19 15:51:47 UTC 2026 submitted job id 2251384 awaits release by job manager
Nov 19 15:52:28 UTC 2026 released job awaits launch by Slurm scheduler
Nov 19 15:53:45 UTC 2026 running job 2251384 is running
Nov 19 15:59:49 UTC 2026 finished
😁 SUCCESS (click triangle for details)
Details
✅ job output file slurm-2251384.out
✅ no message matching FATAL:
✅ no message matching ERROR:
✅ no message matching FAILED:
✅ no message matching required modules missing:
✅ found message(s) matching No missing installations
✅ found message matching .tar.* created!
Artefacts
eessi-2025.06-software-linux-aarch64-a64fx-17951037210.tar.zstsize: 0 MiB (38453 bytes)
entries: 1
modules under 2025.06/software/linux/aarch64/a64fx/modules/all
no module files in tarball
software under 2025.06/software/linux/aarch64/a64fx/software
no software packages in tarball
reprod directories under 2025.06/software/linux/aarch64/a64fx/reprod
no reprod directories in tarball
other under 2025.06/software/linux/aarch64/a64fx
no other files in tarball
Nov 19 15:59:49 UTC 2026 test result
😢 FAILURE (click triangle for details)
Reason
EESSI test suite produced failures.
ReFrame Summary
[ FAILED ] Ran 6/6 test case(s) from 6 check(s) (6 failure(s), 0 skipped, 0 aborted)
Details
✅ job output file slurm-2251384.out
❌ found message matching ERROR:
❌ found message matching [\s*FAILED\s*].*Ran .* test case
Nov 19 18:04:05 UTC 2026 uploaded transfer of eessi-2025.06-software-linux-aarch64-a64fx-17951037210.tar.zst to S3 bucket succeeded

@eessi-bot-deucalion

eessi-bot-deucalion Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

New job on instance eessi-bot-deucalion for repository eessi.io-2026.06-software
Building on: a64fx
Building for: aarch64/a64fx
Job dir: /home/eessibot/new-bot/jobs/2026.11/pr_347/2251385
Commit SHA: 2f4a81d

date job status comment
Nov 19 15:51:55 UTC 2026 submitted job id 2251385 awaits release by job manager
Nov 19 15:52:24 UTC 2026 released job awaits launch by Slurm scheduler
Nov 19 15:53:50 UTC 2026 running job 2251385 is running
Nov 19 15:58:39 UTC 2026 finished
😁 SUCCESS (click triangle for details)
Details
✅ job output file slurm-2251385.out
✅ no message matching FATAL:
✅ no message matching ERROR:
✅ no message matching FAILED:
✅ no message matching required modules missing:
✅ found message(s) matching No missing installations
✅ found message matching .tar.* created!
Artefacts
eessi-2026.06-software-linux-aarch64-a64fx-17951037240.tar.zstsize: 0 MiB (38402 bytes)
entries: 1
modules under 2026.06/software/linux/aarch64/a64fx/modules/all
no module files in tarball
software under 2026.06/software/linux/aarch64/a64fx/software
no software packages in tarball
reprod directories under 2026.06/software/linux/aarch64/a64fx/reprod
no reprod directories in tarball
other under 2026.06/software/linux/aarch64/a64fx
no other files in tarball
Nov 19 15:58:39 UTC 2026 test result
😢 FAILURE (click triangle for details)
Reason
EESSI test suite produced failures.
ReFrame Summary
[ FAILED ] Ran 4/4 test case(s) from 4 check(s) (4 failure(s), 0 expected failure(s), 0 skipped, 0 aborted)
Details
✅ job output file slurm-2251385.out
❌ found message matching ERROR:
❌ found message matching [\s*FAILED\s*].*Ran .* test case
Nov 19 18:04:27 UTC 2026 uploaded transfer of eessi-2026.06-software-linux-aarch64-a64fx-17951037240.tar.zst to S3 bucket succeeded

@bedroge
bedroge merged commit a589dd4 into EESSI:main Nov 19, 2026
173 of 177 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants