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

nvcc wrapper: Add -ccbin only if not already supplied #54

Merged
merged 9 commits into from
Dec 10, 2020
10 changes: 5 additions & 5 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .ci_support/linux_64_cuda_compiler_version10.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '7'
docker_image:
- condaforge/linux-anvil-cuda:10.0
- quay.io/condaforge/linux-anvil-cuda:10.0
target_platform:
- linux-64
zip_keys:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/linux_64_cuda_compiler_version10.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '7'
docker_image:
- condaforge/linux-anvil-cuda:10.1
- quay.io/condaforge/linux-anvil-cuda:10.1
target_platform:
- linux-64
zip_keys:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/linux_64_cuda_compiler_version10.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '7'
docker_image:
- condaforge/linux-anvil-cuda:10.2
- quay.io/condaforge/linux-anvil-cuda:10.2
target_platform:
- linux-64
zip_keys:
Expand Down
6 changes: 3 additions & 3 deletions .ci_support/linux_64_cuda_compiler_version11.0.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
c_compiler:
- gcc
c_compiler_version:
- '7'
- '9'
cdt_name:
- cos6
channel_sources:
Expand All @@ -15,9 +15,9 @@ cuda_compiler_version:
cxx_compiler:
- gxx
cxx_compiler_version:
- '7'
- '9'
docker_image:
- condaforge/linux-anvil-cuda:11.0
- quay.io/condaforge/linux-anvil-cuda:11.0
target_platform:
- linux-64
zip_keys:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/linux_64_cuda_compiler_version9.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '7'
docker_image:
- condaforge/linux-anvil-cuda:9.2
- quay.io/condaforge/linux-anvil-cuda:9.2
target_platform:
- linux-64
zip_keys:
Expand Down
10 changes: 8 additions & 2 deletions recipe/install_nvcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,14 @@ EOF

# Create `nvcc` script in `bin` so it can be easily run.
mkdir -p "${PREFIX}/bin"
cat > "${PREFIX}/bin/nvcc" <<EOF
cat > "${PREFIX}/bin/nvcc" <<'EOF'
#!/bin/bash
"\${CUDA_HOME}/bin/nvcc" -ccbin "\${CXX}" \$@
for arg in "${@}" ; do
case ${arg} in -ccbin)
# If -ccbin argument is already provided, don't add an additional one.
exec "${CUDA_HOME}/bin/nvcc" "${@}"
esac
done
exec "${CUDA_HOME}/bin/nvcc" -ccbin "${CXX}" "${@}"
kkraus14 marked this conversation as resolved.
Show resolved Hide resolved
EOF
chmod +x "${PREFIX}/bin/nvcc"
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "nvcc" %}
{% set number = 7 %}
{% set number = 8 %}

package:
name: "{{ name }}"
Expand Down