- GPU_TARGET=Pascal
LAPACK_LIBRARIES=mkl_intel_lp64.lib;mkl_intel_thread.lib;mkl_core.lib;libiomp5md.lib (copied from IntelSWTools/parallel_studio_xe_2019.0.045/ compilers_and_libraries_2019/windows/mkl/lib/intel64_win)
MKLROOT=D:/Program Files (x86)/IntelSWTools/parallel_studio_xe_2019.0.045/compilers_and_libraries_2019/windows/mkl
USE_FORTRAN=Yes
I compiled and ran testing_dgels in Debug and in Release mode successfully.
Copied example_sparse.c to a new folder, renamed it example_sparse.cpp Created a simple CMakeLists.txt
Code: Select all
add_executable(magma-test example_sparse.cpp)
find_package( CUDA ) # just to set CUDA_INCLUDE_DIRS
target_include_directories(magma-test PUBLIC D:/Work/Magma/magma-2.4.0/include D:/Work/Magma/magma-2.4.0/sparse/include ${CUDA_INCLUDE_DIRS})
target_link_libraries(magma-test debug D:/Work/Magma/magma-2.4.0/build/lib/Debug/magma.lib debug D:/Work/Magma/magma-2.4.0/build/lib/Debug/magma_sparse.lib)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")2>magma_sparse.lib(magma_sparse_generated_djacobisetup.cu.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in magma.lib(interface.obj)
(what?..)
Just grasping at straws I also compiled MAGMA in Release mode, and then tried to compile the example code in Release mode, which yields
1>magma_sparse.lib(magma_dmio.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in magma_sparse.lib(magma_sparse_generated_djacobisetup.cu.obj)
What may be happening here?
What more information do we need to divine this issue?
Shall I recompile MAGMA from scratch?