Skip to content

[FEA] Add initial CMakeLists.txt#311

Closed
trxcllnt wants to merge 126 commits intonv-legate:branch-22.10from
trxcllnt:fea/add-cmake
Closed

[FEA] Add initial CMakeLists.txt#311
trxcllnt wants to merge 126 commits intonv-legate:branch-22.10from
trxcllnt:fea/add-cmake

Conversation

@trxcllnt
Copy link
Contributor

@trxcllnt trxcllnt commented Apr 29, 2022

edit: Closing in favor of #514

This PR adds a CMakeLists.txt file for configuring and building with CMake:

cmake -S . -B build -GNinja \
  -D CMAKE_CUDA_ARCHITECTURES=NATIVE \
  -D legate_core_ROOT=/path/to/legate/core/build

This PR depends on the legate.core CMake PR, as well as this branch in my Legion fork:

# Build legate.core with a custom fork of Legion
cmake -S . -B build -GNinja \
  -D CMAKE_CUDA_ARCHITECTURES=NATIVE \
  -D Legion_USE_CUDA=ON \
  -D Legion_USE_OpenMP=ON \
  -D Legion_USE_GASNet=ON \
  -D GASNet_CONDUIT=mpi \
  -DLEGATE_CORE_LEGION_BRANCH=fix/use-as-cmake-submodule-master \
  -DLEGATE_CORE_LEGION_REPOSITORY=https://gitlab.com/inlineptx/legion.git

Or to build cuNumeric, legate.core, and legion all at once:

git clone https://github.com/trxcllnt/cunumeric.git --branch=fea/add-cmake

cd cunumeric

cmake -S . -B build -GNinja \
  -D GASNet_CONDUIT=mpi \
  -D Legion_USE_CUDA=ON \
  -D Legion_USE_OpenMP=ON \
  -D Legion_USE_GASNet=ON \
  -D CMAKE_CUDA_ARCHITECTURES=NATIVE \
  -D LEGATE_CORE_LEGION_BRANCH=fix/use-as-cmake-submodule \
  -D LEGATE_CORE_LEGION_REPOSITORY=https://github.com/trxcllnt/legion.git \
  -D CUNUMERIC_LEGATE_CORE_BRANCH=fea/add-cmake \
  -D CUNUMERIC_LEGATE_CORE_REPOSITORY=https://github.com/trxcllnt/legate.core

cmake --build build

Depends on nv-legate/legate#198 and https://gitlab.com/StanfordLegion/legion/-/merge_requests/502 edit: 502 has been merged

@trxcllnt trxcllnt changed the base branch from branch-22.05 to branch-22.07 May 25, 2022 20:19
@trxcllnt trxcllnt changed the base branch from branch-22.07 to branch-22.10 August 4, 2022 20:10
ipdemes pushed a commit to ipdemes/cunumeric that referenced this pull request Aug 4, 2022
)

* src: switch to abolute include path for pthread_barrier.h

This commit switches the relative include of "pthread_barrier.h" to an
absolute path off of core/ so that client libraries that include
"core/comm.h" can find the file.

* core: fix alignment in core.mk
@trxcllnt trxcllnt closed this Aug 15, 2022
@trxcllnt trxcllnt deleted the fea/add-cmake branch August 15, 2022 17:48
@trxcllnt trxcllnt restored the fea/add-cmake branch August 15, 2022 17:49
@trxcllnt trxcllnt reopened this Aug 15, 2022
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

Successfully merging this pull request may close these issues.

2 participants