This repository was archived by the owner on Jan 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ find_package(pybind11 CONFIG)
2020find_package (MPI REQUIRED)
2121#find_package(OpenMP)
2222
23- set (MKL_LIBRARIES -L$ENV{MKLROOT} /lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -ltbb -lpthread -lrt -ldl -lm)
23+ set (MKL_LIBRARIES -L$ENV{MKLROOT} /lib -lmkl_intel_lp64 -lmkl_tbb_thread -lmkl_core -ltbb -lpthread -lrt -ldl -lm)
2424#set(CMAKE_INSTALL_RPATH $ENV{MKLROOT}/lib)
2525# Use -fPIC even if statically compiled
2626set (CMAKE_POSITION_INDEPENDENT_CODE ON )
@@ -42,7 +42,7 @@ set(MyCppSources ${MyCppSources} ${P2C_HPP})
4242
4343pybind11_add_module(_ddptensor MODULE ${MyCppSources} )
4444
45- target_compile_definitions (_ddptensor PRIVATE XTENSOR_USE_XSIMD=1 XTENSOR_USE_OPENMP =1 DDPT_2TYPES=1 USE_MKL=1)
45+ target_compile_definitions (_ddptensor PRIVATE XTENSOR_USE_XSIMD=1 XTENSOR_USE_TBB =1 DDPT_2TYPES=1 USE_MKL=1)
4646target_include_directories (_ddptensor PRIVATE
4747 ${PROJECT_SOURCE_DIR} /src/include
4848 ${PROJECT_SOURCE_DIR} /third_party/xtl/include
@@ -52,5 +52,5 @@ target_include_directories(_ddptensor PRIVATE
5252 ${PROJECT_SOURCE_DIR} /third_party/bitsery/include
5353 ${MPI_INCLUDE_PATH} $ENV{MKLROOT} /include
5454 ${pybind11_INCLUDE_DIRS} )
55- target_compile_options (_ddptensor PRIVATE -fopenmp)
55+ # target_compile_options(_ddptensor PRIVATE -fopenmp)
5656target_link_libraries (_ddptensor PRIVATE ${MPI_C_LIBRARIES} ${MKL_LIBRARIES} )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def build_cmake(self, ext):
2929 extdir .parent .mkdir (parents = True , exist_ok = True )
3030
3131 # example of cmake args
32- config = 'Debug' # if self.debug else 'Release' # 'RelWithDebInfo'
32+ config = 'Debug' if self .debug else 'Release' # 'RelWithDebInfo' #'Release '
3333 cmake_args = [
3434 '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + str (extdir .parent .absolute ()),
3535 '-DCMAKE_BUILD_TYPE=' + config
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ namespace x
123123
124124 ~DPTensorX ()
125125 {
126- // if(_id != Mediator::LOCAL_ONLY && theMediator) theMediator->unregister_array(_id);
126+ if (_id != Mediator::LOCAL_ONLY && theMediator) theMediator->unregister_array (_id);
127127 }
128128
129129 bool is_sliced () const
You can’t perform that action at this time.
0 commit comments