File tree 4 files changed +42
-8
lines changed 4 files changed +42
-8
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,46 @@ if(${ENABLE_SPBLAS})
24
24
endif ()
25
25
set (MKLLIB ${MKLROOT} /lib CACHE PATH "Path to Intel MKL Libraries" )
26
26
set (MKLINCLUDE ${MKLROOT} /include CACHE PATH "Path to Intel MKL include files" )
27
+
28
+ add_executable (
29
+ test_root_spblas
30
+ test_root_spblas.f90
31
+ )
32
+
33
+ # Add include directories
34
+ target_include_directories (
35
+ test_root_spblas
36
+ PRIVATE ${MKLINCLUDE}
37
+ )
38
+
39
+ # Specify the MKL libraries for linking
40
+ target_link_libraries (
41
+ test_root_spblas
42
+ PRIVATE
43
+ # must be static
44
+ ${MKLLIB} /libmkl_blas95_ilp64.a
45
+
46
+ # must shared
47
+ ${MKLLIB} /libmkl_intel_ilp64.so
48
+ ${MKLLIB} /libmkl_sequential.so # or libmkl_intel_thread.so
49
+ ${MKLLIB} /libmkl_core.so
50
+
51
+ # standard shared libs
52
+ pthread
53
+ m
54
+ dl
55
+ )
27
56
endif ()
28
57
29
58
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR} /cmake" )
30
59
31
60
# build externals with specified version corresponding to git tag
32
- include (FetchContent)
33
- message (STATUS "Build extern" )
34
- set (fftpack_GIT_TAG main)
35
- set (pFUnit_GIT_TAG cf37fb694f7c015d3718c1b4f7f3e9a56613067a) # fixes fetch content
36
- set (test -drive_GIT_TAG main)
37
- add_subdirectory (extern)
61
+ # include(FetchContent)
62
+ # message(STATUS "Build extern")
63
+ # set(fftpack_GIT_TAG main)
64
+ # set(pFUnit_GIT_TAG cf37fb694f7c015d3718c1b4f7f3e9a56613067a) # fixes fetch content
65
+ # set(test-drive_GIT_TAG main)
66
+ # add_subdirectory(extern)
38
67
39
68
message (STATUS "Build src" )
40
69
include (GNUInstallDirs)
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/bash
2
+ cmake -S . -B build-spblas -DCMAKE_Fortran_COMPILER=ifx -DBUILD_TESTING=ON
3
+ cmake --build build-spblas
4
+ ./build/test/test_spblas
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ target_include_directories(${PROJECT_NAME} PUBLIC
27
27
)
28
28
29
29
# Could use cmake/helpers.cmake::link_libraries but fftpack include dir is not needed
30
- target_link_libraries (${PROJECT_NAME} fftpack)
30
+ # TODO:
31
+ #target_link_libraries(${PROJECT_NAME} fftpack)
31
32
32
33
# installation/configuration steps (modified from fotran-lang/stdlib)
33
34
install (
Original file line number Diff line number Diff line change 5
5
! !
6
6
7
7
MODULE mo_square
8
- USE fftpack
8
+ ! USE fftpack
9
9
IMPLICIT NONE
10
10
11
11
CONTAINS
You can’t perform that action at this time.
0 commit comments