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 libcurand recipe #21916

Merged
merged 36 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5ace05e
initial commit for adding curand
mmccarty Jan 31, 2023
7f08d92
additions from 12.0.0 branch
mmccarty Jan 31, 2023
a4cbd51
reverted version
mmccarty Jan 31, 2023
85a8b63
Update recipes/libcurand/meta.yaml
mmccarty Jan 31, 2023
ef70cce
Update recipes/libcurand/meta.yaml
mmccarty Jan 31, 2023
816dfca
dropped post-link.sh
mmccarty Jan 31, 2023
896e4b7
Update recipes/libcurand/meta.yaml
mmccarty Jan 31, 2023
7f44855
Update recipes/libcurand/meta.yaml
mmccarty Jan 31, 2023
b2f5103
Update recipes/libcurand/meta.yaml
mmccarty Jan 31, 2023
3310a72
Update recipes/libcurand/meta.yaml
mmccarty Jan 31, 2023
ab58e81
Use `libcurand-static` in `libcurand-dev`
jakirkham Jan 31, 2023
6c7dd3a
Add selector for `build` too
jakirkham Jan 31, 2023
3c6cfc2
Fix indentation
jakirkham Jan 31, 2023
f244ca3
Fix another indentation issue
jakirkham Jan 31, 2023
09a9e32
Update recipes/libcurand/meta.yaml
mmccarty Feb 10, 2023
a079b1a
Update recipes/libcurand/meta.yaml
mmccarty Feb 10, 2023
3f172cc
Merge branch 'main' into create-libcurand
mmccarty Feb 10, 2023
fa559c8
Update recipes/libcurand/meta.yaml
mmccarty Mar 22, 2023
0e09f49
Update recipes/libcurand/meta.yaml
mmccarty Mar 22, 2023
26ed4a7
Update recipes/libcurand/meta.yaml
mmccarty Mar 22, 2023
e181c0b
Update recipes/libcurand/meta.yaml
mmccarty Mar 22, 2023
999a102
Update recipes/libcurand/meta.yaml
mmccarty Mar 22, 2023
179e692
Update recipes/libcurand/meta.yaml
mmccarty Mar 22, 2023
14e73b8
Merge branch 'main' into create-libcurand
jakirkham Mar 27, 2023
77a4424
Update build.sh
vyasr Apr 10, 2023
7cbd56d
Add arm support in variant
vyasr Apr 10, 2023
8326a6a
Update meta.yaml
vyasr Apr 10, 2023
91af938
Address some PR comments
vyasr Apr 10, 2023
eaf3421
Merge pull request #1 from vyasr/create-libcurand
vyasr Apr 11, 2023
16e6982
Fix tabs
vyasr Apr 11, 2023
17f7b66
Address PR comments
vyasr Apr 11, 2023
0e53867
Fix test for static lib
vyasr Apr 11, 2023
bc951aa
Address PR comments
vyasr Apr 11, 2023
9b9153a
Update recipes/libcurand/meta.yaml
vyasr Apr 11, 2023
72c8131
Fix curand tests.
bdice Apr 11, 2023
3322e14
Merge pull request #2 from bdice/fix-curand-tests
vyasr Apr 11, 2023
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
5 changes: 5 additions & 0 deletions recipes/libcurand/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if not exist %PREFIX% mkdir %PREFIX%

move lib\x64\* %LIBRARY_LIB%
move bin\* %LIBRARY_BIN%
move include\* %LIBRARY_INC%
24 changes: 24 additions & 0 deletions recipes/libcurand/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Install to conda style directories
[[ -d lib64 ]] && mv lib64 lib
mmccarty marked this conversation as resolved.
Show resolved Hide resolved

[[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux"
[[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux"
[[ ${target_platform} == "linux-aarch64" ]] && targetsDir="targets/sbsa-linux"

for i in `ls`; do
[[ $i == "build_env_setup.sh" ]] && continue
[[ $i == "conda_build.sh" ]] && continue
[[ $i == "metadata_conda_debug.yaml" ]] && continue
if [[ $i == "lib" ]] || [[ $i == "include" ]]; then
mkdir -p ${PREFIX}/${targetsDir}
mkdir -p ${PREFIX}/$i
cp -rv $i ${PREFIX}/${targetsDir}
for j in `ls $i`; do
ln -s ../${targetsDir}/$i/$j ${PREFIX}/$i/$j
done
else
cp -rv $i ${PREFIX}
fi
done
89 changes: 89 additions & 0 deletions recipes/libcurand/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{% set name = "libcurand" %}
{% set version = "10.3.1.50" %}
mmccarty marked this conversation as resolved.
Show resolved Hide resolved
{% set platform = "linux-x86_64" %} # [linux64]
{% set platform = "linux-ppc64le" %} # [ppc64le]
{% set platform = "linux-sbsa" %} # [aarch64]
{% set platform = "windows-x86_64" %} # [win]
{% set extension = "tar.xz" %} # [not win]
{% set extension = "zip" %} # [win]

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://developer.download.nvidia.com/compute/cuda/redist/{{ name }}/{{ platform }}/{{ name }}-{{ platform }}-{{ version }}-archive.{{ extension }}
sha256: 7c25712016fdde96011c3370673d9007eddd7231261a9b47f36b213ceb964191 # [linux64]
sha256: ac020f6e88105927f96f58ca331d3cddba35b37376f4716e866155c4f56681dd # [ppc64le]
sha256: c7ae331dd6c9936a4e9746abdc222514bbda47a1e495e396b8244b918de377e2 # [aarch64]
sha256: 5fb95fbbd1c652e1e2a8c12c41d225117cab3f718c739f0d49d580c11b4a44f1 # [win]

build:
number: 0
skip: true # [osx]

requirements:
build:
- {{ compiler("c") }}
- {{ compiler("cxx") }}
host:
- sysroot_{{ target_platform }} 2.17 # [linux]
- __glibc >=2.17 # [linux]
run:
- sysroot_{{ target_platform }} 2.17 # [linux]
- __glibc >=2.17 # [linux]
mmccarty marked this conversation as resolved.
Show resolved Hide resolved

outputs:
- name: libcurand
files:
- lib/libcurand.so.* # [linux]
- targets/*/lib/libcurand.so.* # [linux]
- Library\bin # [win]
mmccarty marked this conversation as resolved.
Show resolved Hide resolved
mmccarty marked this conversation as resolved.
Show resolved Hide resolved
test:
commands:
- test -f $PREFIX/lib/libcurand.so.{{ version }} # [linux]
- if not exist %LIBRARY_BIN%\curand64_{{ version.split(".")[0] }}.dll exit 1 # [win]
jakirkham marked this conversation as resolved.
Show resolved Hide resolved

- name: libcurand-dev
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
requirements:
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
run:
- libcurand >={{ version }}
mmccarty marked this conversation as resolved.
Show resolved Hide resolved
- libcurand-static >={{ version }}
mmccarty marked this conversation as resolved.
Show resolved Hide resolved
files:
- lib/libcurand.so # [linux]
- targets/*/lib/libcurand.so # [linux]
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
- lib/stubs/libcurand.so* # [linux]
- targets/*/lib/stubs/libcurand.so* # [linux]
- include/curand* # [linux]
- targets/*/include/curand* # [linux]
- Library\include # [win]
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
- Library\lib # [win]
mmccarty marked this conversation as resolved.
Show resolved Hide resolved
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
test:
commands:
- test -f $PREFIX/include/curand.h # [linux]
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
- if not exist %LIBRARY_INC%\curand.h exit 1 # [win]
- if not exist %LIBRARY_LIB%\curand.lib exit 1 # [win]

- name: libcurand-static
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
build:
skip: True # [not linux]
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
files:
- lib/libcurand_static.a
- targets/*/lib/libcurand_static.a
mmccarty marked this conversation as resolved.
Show resolved Hide resolved
test:
commands:
- test -f $PREFIX/lib/libcurand_static.a
jakirkham marked this conversation as resolved.
Show resolved Hide resolved

about:
home: https://developer.nvidia.com/cuda-toolkit
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
license_file: LICENSE
license: LicenseRef-NVIDIA-End-User-License-Agreement
license_url: https://docs.nvidia.com/cuda/eula/index.html
summary: CURAND native runtime libraries
description: |
CURAND native runtime libraries
doc_url: https://docs.nvidia.com/cuda/index.html
jakirkham marked this conversation as resolved.
Show resolved Hide resolved

extra:
recipe-maintainers:
- adibbley