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

Add support for curand conda package build (cherry pick #510) #512

Merged
merged 1 commit into from
Aug 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions conda/conda-build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ install_args=()
if [ -z "$CPU_ONLY" ]; then
# cutensor, relying on the conda cutensor package
install_args+=("--with-cutensor" "$PREFIX")
else
# When we build without cuda, we need to provide the location of curand
install_args+=("--with-curand" "$PREFIX")
fi

# location of legate-core
Expand Down
9 changes: 8 additions & 1 deletion conda/conda-build/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,19 @@ requirements:
- cuda-nvcc ={{ cuda_version }}
{% endif %}
host:
# the nvcc requirement is necessary because it contains crt/host_config.h used by cuda runtime. This is a packaging bug that has been reported.
- cuda-nvcc ={{ cuda_version }}
# libcurand is used both in CPU and GPU builds
- libcurand-dev
# cudart needed for CPU and GPU builds because of curand
- cuda-cudart-dev ={{ cuda_version }}
- python
- openblas =* =*openmp*
{% if not gpu_enabled_bool %}
- legate-core >={{ core_version }} =*_cpu
{% else %}
- legate-core >={{ core_version }}
- cuda-driver-dev ={{ cuda_version }}
- cuda-cudart-dev ={{ cuda_version }}
# - libcutensor-dev >=1.3
- cutensor >=1.3
- cuda-nvtx
Expand All @@ -99,6 +104,8 @@ requirements:
- libcublas
- libcusolver
- libcufft
# libcurand only enabled for a GPU package, include-only for CPU package
- libcurand
{% endif %}
- opt_einsum >=3.3
- scipy
Expand Down