Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cmake] revise scalapackpp from-source build #256

Open
2 tasks
evaleev opened this issue Feb 14, 2021 · 2 comments
Open
2 tasks

[cmake] revise scalapackpp from-source build #256

evaleev opened this issue Feb 14, 2021 · 2 comments
Assignees

Comments

@evaleev
Copy link
Member

evaleev commented Feb 14, 2021

todo:

@evaleev evaleev self-assigned this Feb 14, 2021
@bimalgaudel
Copy link
Member

@evaleev is this going to address the following issue?

Compile and install TA

#!/usr/bin/env sh
cmake \
    -B build \
    -D TA_ASSUMES_ASLR_DISABLED=ON \
    -D BUILD_SHARED_LIBS=ON \
    -D TA_BUILD_UNITTEST=ON \
    -D CMAKE_BUILD_TYPE=Release \
    -D CMAKE_INSTALL_PREFIX=${HOME}/opt/tiledarray \
    -D CMAKE_TOOLCHAIN_FILE=cmake/vg/toolchains/macos-clang-mpi-accelerate.cmake .

Configure sample program

#!/usr/bin/env sh
cmake \
      -B build \
      -D CMAKE_EXPORT_COMPILE_COMMANDS=ON \
      -D CMAKE_CXX_COMPILER=$(which clang++) \
      -D BUILD_SHARED_LIBS=ON \
      -D CMAKE_PREFIX_PATH=${HOME}/opt/tiledarray

Error:

CMake Error at /usr/local/Cellar/cmake/3.19.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.19.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.19.4/share/cmake/Modules/FindOpenMP.cmake:529 (find_package_handle_standard_args)
  /usr/local/Cellar/cmake/3.19.4/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /Users/gaudel/opt/tiledarray/lib/blaspp/blasppConfig.cmake:8 (find_dependency)
  /usr/local/Cellar/cmake/3.19.4/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /Users/gaudel/opt/tiledarray/lib/cmake/BTAS/btas-config.cmake:86 (find_dependency)
  /Users/gaudel/opt/tiledarray/lib/cmake/tiledarray/tiledarray-config.cmake:42 (find_package)
  CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "/Users/gaudel/scratch/cpp/build/CMakeFiles/CMakeOutput.log".
See also "/Users/gaudel/scratch/cpp/build/CMakeFiles/CMakeError.log".

@evaleev
Copy link
Member Author

evaleev commented Feb 15, 2021

@bimalgaudel no, that is another issue due to broken handling of OpenMP in blaspp. When configuring TA set use_openmp=OFF to work around.

cc: @wavefunction91

wavefunction91 pushed a commit that referenced this issue May 4, 2021
…p version to fix problems in BLACS/ScaLAPACK discovery (#256) + fixed associated API changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants