Skip to content

Commit e7fc1a3

Browse files
committed
turns out the binary segfaults if you dont specify integer size during compilation...
1 parent 581ee57 commit e7fc1a3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ if(${ENABLE_SPBLAS})
5353
m
5454
dl
5555
)
56+
57+
target_compile_options(
58+
test_root_spblas
59+
PRIVATE
60+
-i8 # required, otherwise segfaults
61+
)
5662
endif()
5763

5864
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")

config/intel_ubuntu_spblas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/bash
22
cmake -S . -B build-spblas -DCMAKE_Fortran_COMPILER=ifx -DBUILD_TESTING=ON
33
cmake --build build-spblas
4-
./build/test/test_spblas
4+
./build-spblas/test/test_spblas
5+
./build-spblas/test_root_spblas

0 commit comments

Comments
 (0)