File tree 3 files changed +23
-8
lines changed
3 files changed +23
-8
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/bash
2
+ [[ -d build-spblas-levante ]] && rm -rf build-spblas-levante
3
+ cmake -S . -B build-spblas-levante\
4
+ -DCMAKE_Fortran_COMPILER=ifx\
5
+ -DMKLROOT=/sw/spack-levante/intel-oneapi-mkl-2022.0.1-ttdktf/mkl/2022.0.1\
6
+ -DMKLLIB=/sw/spack-levante/intel-oneapi-mkl-2022.0.1-ttdktf/mkl/2022.0.1/lib/intel64/\
7
+ -DMKLINCLUDE=/sw/spack-levante/intel-oneapi-mkl-2022.0.1-ttdktf/mkl/2022.0.1/include\
8
+ -DBUILD_TESTING=ON\
9
+ -DENABLE_SPBLAS=ON\
10
+ -DENABLE_FFTPACK=ON\
11
+ -DENABLE_PFUNIT=OFF\
12
+ -DENABLE_TEST_DRIVE=OFF
13
+
14
+ cmake --build build-spblas-levante
15
+
16
+ ./build-spblas-levante/test/test_spblas
Original file line number Diff line number Diff line change @@ -27,15 +27,14 @@ target_include_directories(${PROJECT_NAME} PUBLIC
27
27
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >
28
28
)
29
29
30
- # Could use cmake/helpers.cmake::link_libraries but fftpack include dir is not needed
31
30
if (${ENABLE_FFTPACK} )
32
- target_compile_definitions (${PROJECT_NAME} PRIVATE __FFTPACK )
33
- target_link_libraries (${PROJECT_NAME} fftpack)
31
+ target_compile_definitions (${PROJECT_NAME} PRIVATE FFTPACK )
32
+ target_link_libraries (${PROJECT_NAME} PRIVATE fftpack)
34
33
endif ()
35
34
36
35
if (${ENABLE_SPBLAS} )
37
- target_compile_definitions (${PROJECT_NAME} PRIVATE __INTEL_SPBLAS )
38
- link_spblas(${PROJECT_NAME} )
36
+ target_compile_definitions (${PROJECT_NAME} PRIVATE INTEL_SPBLAS )
37
+ link_spblas(${PROJECT_NAME} )
39
38
endif ()
40
39
41
40
# installation/configuration steps (modified from fotran-lang/stdlib)
Original file line number Diff line number Diff line change 4
4
! ! This module defines a function to compute the square of a given real number.
5
5
! !
6
6
7
- #ifdef __INTEL_SPBLAS
7
+ #ifdef INTEL_SPBLAS
8
8
INCLUDE " mkl_spblas.f90"
9
9
#endif
10
10
MODULE mo_square
11
- #ifdef __FFTPACK
11
+ #ifdef FFTPACK
12
12
USE fftpack
13
13
#endif
14
- #ifdef __INTEL_SPBLAS
14
+ #ifdef INTEL_SPBLAS
15
15
USE mkl_spblas
16
16
#endif
17
17
IMPLICIT NONE
You can’t perform that action at this time.
0 commit comments