-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Adding cuda-nvcc recipe #21350
Adding cuda-nvcc recipe #21350
Changes from 27 commits
6a9d375
5919ec4
5bd1429
09e2531
dbd0844
7c85b37
4ac9038
d316b98
417a5b7
7924319
3d4b217
346d69d
bc8f875
4159367
8f8850e
1a76fc9
98152ae
61eec82
3f3c155
51cdbb3
641b202
3368b1b
5d836c8
9672270
da244ab
d82e926
87f4fc1
b123f9d
7390c24
e01c93e
d7be9d4
7384618
3b34db3
50e3ace
1271c83
e2397dc
786c01b
46d478c
f6aa345
c925141
aaf8b3f
054d71f
25209da
7d0a96e
4e8d8c9
579e8de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,17 @@ | ||||||
if not exist %PREFIX% mkdir %PREFIX% | ||||||
|
||||||
rem Directories... | ||||||
for /D %%i in (.\*) do ( | ||||||
robocopy /E %%i %PREFIX%\%%i | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
) | ||||||
|
||||||
rem Files... | ||||||
for %%i in (.\*) do ( | ||||||
if not %%~ni==build_env_setup ( | ||||||
if not %%~ni==conda_build ( | ||||||
if not %%~ni==metadata_conda_debug ( | ||||||
xcopy %%i %PREFIX% | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
) | ||||||
) | ||||||
) | ||||||
) |
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 | ||
|
||
[[ ${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 -r $i ${PREFIX}/${targetsDir} | ||
for j in `ls $i`; do | ||
ln -s ../${targetsDir}/$i/$j ${PREFIX}/$i/$j | ||
done | ||
else | ||
cp -r $i ${PREFIX} | ||
fi | ||
done | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
c_compiler_version: # [linux] | ||
- 12 # [linux] | ||
cxx_compiler_version: # [linux] | ||
- 12 # [linux] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{% set name = "cuda-nvcc" %} | ||
{% set version = "12.0.76" %} | ||
{% 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/cuda_nvcc/{{ platform }}/cuda_nvcc-{{ platform }}-{{ version }}-archive.{{ extension }} | ||
|
||
sha256: 160ca9f8828f53daa4b2066c5361aacb45fa2575885f70c223cda1d11df53d6f # [linux64] | ||
sha256: dc5bd7eac57b32a9645c0c23c6a1ba8a9533e846eeec31414e1aa4230afee2f8 # [ppc64le] | ||
sha256: 85c8c643ea2cfa398e1b5ffcd597f5bb3b738526c9e3fb8e39dd909c55345f36 # [aarch64] | ||
sha256: f67406f44263f0e4a110a8cf0200bff1d3d0e32917db8a7c9e417a87eb7ca372 # [win] | ||
|
||
build: | ||
number: 0 | ||
skip: true # [osx] | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run_exports: | ||
strong: | ||
- __glibc >=2.17 # [linux] | ||
|
||
requirements: | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
build: | ||
- {{ compiler("c") }} | ||
- {{ compiler("cxx") }} | ||
host: | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- sysroot_{{ target_platform }} 2.17 # [linux] | ||
- __glibc >=2.17 # [linux] | ||
run: | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- sysroot_{{ target_platform }} 2.17 # [linux] | ||
- __glibc >=2.17 # [linux] | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run_constrained: | ||
- gcc_impl_{{ target_platform }} >=6,<13 # [linux] | ||
|
||
test: | ||
requires: | ||
- {{ compiler("c") }} | ||
- {{ compiler("cxx") }} | ||
- cuda-cudart-dev | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we move this to |
||
files: | ||
- test.cu | ||
commands: | ||
- nvcc --version | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How should we handle cross-compiling use cases? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think what I am really asking for is a check that the expected internal executables exist in the package ( That would avoid any execution of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this still work even when there is no GPU? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes. The compiler will generate a warning ( |
||
- nvcc -ccbin "${CXX}" test.cu | ||
jakirkham marked this conversation as resolved.
Show resolved
Hide resolved
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
about: | ||
home: https://developer.nvidia.com/cuda-toolkit | ||
license_file: LICENSE | ||
license: LicenseRef-NVIDIA-End-User-License-Agreement | ||
license_url: https://docs.nvidia.com/cuda/eula/index.html | ||
summary: Compiler for CUDA applications. | ||
description: | | ||
Compiler for CUDA applications. | ||
doc_url: https://docs.nvidia.com/cuda/index.html | ||
|
||
extra: | ||
recipe-maintainers: | ||
- adibbley |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int main() { | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unfamiliar with Windows, is this something we should be doing in all of our recipes? We didn't do that in libcublas, for instance. We're not specifically writing anything to the
%LIBRARY_PREFIX%
directory in this file.