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

Use conda compilers #2101

Merged
merged 3 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
11 changes: 11 additions & 0 deletions conda/recipes/cugraph/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
c_compiler_version:
- 9

cxx_compiler_version:
- 9

cuda_compiler:
- nvcc

sysroot_version:
- "2.17"
30 changes: 16 additions & 14 deletions conda/recipes/cugraph/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,36 @@ build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_major }}_py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
script_env:
- CC
- CXX
- CUDAHOSTCXX
- PARALLEL_LEVEL
ignore_run_exports_from:
- nvcc_linux-64 # [linux64]
- nvcc_linux-aarch64 # [aarch64]

requirements:
build:
- python x.x
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} {{ cuda_version }}
- sysroot_linux-64 {{ sysroot_version }} # [linux64]
- sysroot_linux-aarch64 {{ sysroot_version }} # [aarch64]
host:
- python
- cython>=0.29,<0.30
- libcugraph={{ version }}
- libraft-headers {{ minor_version }}
- pyraft {{ minor_version }}
- cudf={{ minor_version }}
- libcugraph={{ version }}.*
- libraft-headers {{ minor_version }}.*
- pyraft {{ minor_version }}.*
- cudf={{ minor_version }}.*
- ucx-py {{ ucx_py_version }}
- ucx-proc=*=gpu
- cudatoolkit {{ cuda_version }}.*
- libraft-headers {{ minor_version }}
- libraft-headers {{ minor_version }}.*
run:
- python x.x
- python
- pylibcugraph={{ version }}
- libcugraph={{ version }}
- libraft-headers {{ minor_version }}
- pyraft {{ minor_version }}
- cudf={{ minor_version }}
- dask-cudf {{ minor_version }}
- dask-cuda {{ minor_version }}
- dask>=2022.03.0
- distributed>=2022.03.0
rlratzel marked this conversation as resolved.
Show resolved Hide resolved
- ucx-py {{ ucx_py_version }}
- ucx-proc=*=gpu
- {{ pin_compatible('cudatoolkit', max_pin='x', min_pin='x') }}
Expand Down
12 changes: 12 additions & 0 deletions conda/recipes/libcugraph/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
c_compiler_version:
- 9

cxx_compiler_version:
- 9

cuda_compiler:
- nvcc

cmake_version:
- ">=3.20.1,!=3.23.0"

Expand All @@ -15,3 +24,6 @@ gtest_version:

libcusolver_version:
- ">=11.2.1"

sysroot_version:
- "2.17"
17 changes: 14 additions & 3 deletions conda/recipes/libcugraph/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ source:

build:
script_env:
- CC
- CXX
- CUDAHOSTCXX
- PARALLEL_LEVEL
- VERSION_SUFFIX
- CMAKE_GENERATOR
Expand All @@ -34,6 +31,11 @@ build:
requirements:
build:
- cmake {{ cmake_version }}
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} {{ cuda_version }}
- sysroot_linux-64 {{ sysroot_version }} # [linux64]
- sysroot_linux-aarch64 {{ sysroot_version }} # [aarch64]
host:
- doxygen {{ doxygen_version }}
- cudatoolkit {{ cuda_version }}.*
Expand All @@ -54,6 +56,9 @@ outputs:
build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_major }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
ignore_run_exports_from:
- nvcc_linux-64 # [linux64]
- nvcc_linux-aarch64 # [aarch64]
requirements:
build:
- cmake {{ cmake_version }}
Expand All @@ -76,6 +81,9 @@ outputs:
build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_major }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
ignore_run_exports_from:
- nvcc_linux-64 # [linux64]
- nvcc_linux-aarch64 # [aarch64]
requirements:
build:
- cmake {{ cmake_version }}
Expand All @@ -96,6 +104,9 @@ outputs:
build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_major }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
ignore_run_exports_from:
- nvcc_linux-64 # [linux64]
- nvcc_linux-aarch64 # [aarch64]
requirements:
build:
- cmake {{ cmake_version }}
Expand Down
11 changes: 11 additions & 0 deletions conda/recipes/pylibcugraph/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
c_compiler_version:
- 9

cxx_compiler_version:
- 9

cuda_compiler:
- nvcc

sysroot_version:
- "2.17"
24 changes: 15 additions & 9 deletions conda/recipes/pylibcugraph/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,31 @@ build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_major }}_py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
script_env:
- CC
- CXX
- CUDAHOSTCXX
- PARALLEL_LEVEL
ignore_run_exports_from:
- nvcc_linux-64 # [linux64]
- nvcc_linux-aarch64 # [aarch64]

requirements:
build:
- python x.x
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} {{ cuda_version }}
- sysroot_linux-64 {{ sysroot_version }} # [linux64]
- sysroot_linux-aarch64 {{ sysroot_version }} # [aarch64]
host:
- python
- cython>=0.29,<0.30
- libcugraph={{ version }}
- libcugraph={{ version }}.*
- ucx-py {{ ucx_py_version }}
- ucx-proc=*=gpu
- cudatoolkit {{ cuda_version }}.*
- rmm {{ minor_version }}.*
- libraft-headers {{ minor_version }}
- libraft-headers {{ minor_version }}.*
run:
- python x.x
- libraft-headers {{ minor_version }}
- libcugraph={{ version }}
- python
- libraft-headers {{ minor_version }}.*
- libcugraph={{ version }}.*
- {{ pin_compatible('cudatoolkit', max_pin='x', min_pin='x') }}

tests: # [linux64]
Expand Down
2 changes: 1 addition & 1 deletion python/pylibcugraph/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def run(self):
os.path.join(os.sys.prefix, "lib")
],
libraries=['cudart', 'cusparse', 'cusolver', 'cugraph', 'nccl',
'cugraph_c'],
'cugraph_c', 'cublas'],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As our CI system force us to rebuild Python packages in GPU tests stage, we are compiling using CUDA 11.0 and we are linking to libcusolver.so.10 which does not contain the libcublas. We need to explicitly link to libcublas to fix this

language='c++',
extra_compile_args=['-std=c++17'])
]
Expand Down