pmodels / bolt

Official BOLT Repository
https://www.bolt-omp.org
Other
26 stars 13 forks source link

Failure configuring with internal libabt #59

Closed devreal closed 4 years ago

devreal commented 4 years ago

Trying to build BOLT with internal Argobots on current master results in a CMake error:

$ cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/opt/bolt-git -DLIBOMP_USE_ARGOBOTS=on
...
CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2474 (message):
  No download info given for 'libabt' and its source directory:

   ~/src/bolt/git/bolt/external/argobots

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * DOWNLOAD_COMMAND
   * URL
   * GIT_REPOSITORY
   * SVN_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3029 (_ep_add_download_command)
  external/CMakeLists.txt:32 (ExternalProject_Add)
shintaro-iwasaki commented 4 years ago

If you download BOLT via GitHub, you need to download the internal Argobots by using git submodule.

git submodule init
git submodule update

I believe it should solve the issue.

devreal commented 4 years ago

Ahh yes, that did the trick. That is something CMake can take care of though (or at least give a hint on what to do)

shintaro-iwasaki commented 4 years ago

Thank you for the suggestion! It has been fixed in #60.

I will close this issue.