Skip to content
Snippets Groups Projects
Commit 7f2bd6b2 authored by Philipp Rüssmann's avatar Philipp Rüssmann
Browse files

Fix linking of libflame

parent 24c8e4c0
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,6 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
# debug flags # -finit-local-zero
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g3 -fcheck=all -fbacktrace -Wall -Wextra -mtune=native")
# release flags
# release flags
if(OPTFLAGS_AMD)
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -march=znver1 -mtune=znver1 -mfma -mavx2 -m3dnow -fomit-frame-pointer")
......
......@@ -399,7 +399,7 @@ if(ENABLE_BdG)
source/KKRhost/main1a_dummy_BdG.f90
)
target_link_libraries(kkr_BdG_radial.x lib_kkrhost)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(kkr_BdG_radial.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
endif()
......@@ -185,6 +185,6 @@ add_executable(
source/KKRimp/kkrflex.F90
)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(kkrflex.exe ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -60,7 +60,7 @@ add_executable(
source/PKKprime/main.f90
)
target_link_libraries(Pkkr.x lib_pkkr)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(Pkkr.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -72,7 +72,7 @@ add_executable(
source/PKKprime/bands.f90
)
target_link_libraries(band.x lib_pkkr)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(band.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -83,7 +83,7 @@ add_executable(
source/PKKprime/mergerefined.F90
)
target_link_libraries(mergerefined.x lib_pkkr)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(mergerefined.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -94,7 +94,7 @@ add_executable(
source/PKKprime/refineBZparts.f90
)
target_link_libraries(refineBZparts.x lib_pkkr)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(refineBZparts.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -105,7 +105,7 @@ add_executable(
source/PKKprime/Amatprecalc.f90
)
target_link_libraries(Amatprecalc.x lib_pkkr)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(Amatprecalc.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -116,7 +116,7 @@ add_executable(
source/PKKprime/calculate_spinmixing.F90
)
target_link_libraries(calculate_spinmixing.x lib_pkkr)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(calculate_spinmixing.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -127,7 +127,7 @@ add_executable(
source/PKKprime/visdata.F90
)
target_link_libraries(visdata.x lib_pkkr)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(visdata.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -138,7 +138,7 @@ add_executable(
source/PKKprime/vis2int.F90
)
target_link_libraries(vis2int.x lib_pkkr)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(vis2int.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -149,7 +149,7 @@ add_executable(
source/PKKprime/test.F90
)
target_link_libraries(test.x lib_pkkr)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(test.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -30,6 +30,6 @@ add_executable(
source/rhoq/mod_rhoq.F90
)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(rhoq.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
......@@ -14,6 +14,6 @@ add_executable(
source/common/version_info.F90
source/common/version.F90
)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
target_link_libraries(rllsll_standalone.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
target_link_libraries(rllsll_standalone.x ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
......@@ -61,6 +61,6 @@ add_executable(
source/voronoi/inc.geometry
)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU OR USE_LIBFLAME)
target_link_libraries(voronoi.exe ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
endif()
\ No newline at end of file
......@@ -230,7 +230,7 @@ class Test_SOC():
def test_2_Fe_slab(self):
path0 = 'test_run02.1_hybrid_1_3/'
standard_verify(path0, rms_threshold=1*10**-8, rms_threshold_end=1*10**-8)
standard_verify(path0, rms_threshold=2*10**-8, rms_threshold_end=1*10**-8)
def test_3_Si_lloyd(self):
path0 = 'test_run03.1_hybrid_1_3/'
......
......@@ -10,6 +10,7 @@ rm -rf test_case_kkrflex_host_in_host/imp/test_run_tmatnew_mpi_8
rm -rf test_case_kkrflex_host_in_host/imp/test_run_nosavewf/out
rm -rf test_case_kkrflex_host_in_host/imp/test_run_nosratrick/out
rm -rf test_case_kkrflex_host_in_host/imp/test_run_Jij/out
rm -rf test_case_kkrflex_host_in_host/imp/test_run_Jij_hybrid/out
rm -rf test_case_kkrflex_host_in_host/imp/test_run_Jij_savewf/out
rm -rf test_case_kkrflex_host_in_host/imp/test_run_Jij_nosratrick/out
rm -f test_case_kkrflex_host_in_host/imp/test_run_{Jij,Jij_nosratrick,Jij_savewf,nosavewf,nosratrick}/{ldaupot,out_*,storage_*,test_*}
......
......@@ -117,6 +117,14 @@ fi
if [[ ! -f test_case_kkrflex_host_in_host/imp/test_run_Jij/out ]]; then
echo "test 12"
cd test_case_kkrflex_host_in_host/imp/test_run_Jij/
ln -s ../../../../kkrflex.exe_mpi kkrflex.exe
export OMP_NUM_THREADS=1; mpirun -np 8 ./kkrflex.exe | tee out
cd ../../../
fi
if [[ ! -f test_case_kkrflex_host_in_host/imp/test_run_Jij_hybrid/out ]]; then
echo "test 12"
cd test_case_kkrflex_host_in_host/imp/test_run_Jij_hybrid/
ln -s ../../../../kkrflex.exe_hybrid kkrflex.exe
export OMP_NUM_THREADS=1; mpirun -np 8 ./kkrflex.exe | tee out
cd ../../../
......@@ -125,7 +133,7 @@ fi
if [[ ! -f test_case_kkrflex_host_in_host/imp/test_run_Jij_savewf/out ]]; then
echo "test 13"
cd test_case_kkrflex_host_in_host/imp/test_run_Jij_savewf/
ln -s ../../../../kkrflex.exe_hybrid kkrflex.exe
ln -s ../../../../kkrflex.exe_mpi kkrflex.exe
export OMP_NUM_THREADS=1; mpirun -np 8 ./kkrflex.exe | tee out
cd ../../../
fi
......@@ -133,7 +141,7 @@ fi
if [[ ! -f test_case_kkrflex_host_in_host/imp/test_run_Jij_nosratrick/out ]]; then
echo "test 14"
cd test_case_kkrflex_host_in_host/imp/test_run_Jij_nosratrick/
ln -s ../../../../kkrflex.exe_hybrid kkrflex.exe
ln -s ../../../../kkrflex.exe_mpi kkrflex.exe
export OMP_NUM_THREADS=1; mpirun -np 8 ./kkrflex.exe | tee out
cd ../../../
fi
......
......@@ -52,10 +52,13 @@ class Tests_scf_SOC():
def test_Jij(self):
check_Jijs('test_run_Jij', refpath='host_in_host_Jijs')
def test_Jij(self):
def test_Jij_hybrid(self):
check_Jijs('test_run_Jij_hybrid', refpath='host_in_host_Jijs')
def test_Jij_savewf(self):
check_Jijs('test_run_Jij_savewf', refpath='host_in_host_Jijs')
def test_Jij(self):
def test_Jij_nosratrick(self):
check_Jijs('test_run_Jij_nosratrick', refpath='host_in_host_Jijs', sracomp=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment