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 nsight-compute recipe #23001

Merged
merged 15 commits into from
Jul 11, 2023
3 changes: 3 additions & 0 deletions recipes/nsight-compute/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if not exist %PREFIX% mkdir %PREFIX%

move nsight-compute %PREFIX%
12 changes: 12 additions & 0 deletions recipes/nsight-compute/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Install to conda style directories
[[ -d lib64 ]] && mv lib64 lib
mkdir -p ${PREFIX}/nsight-compute

adibbley marked this conversation as resolved.
Show resolved Hide resolved
for i in `ls`; do
[[ $i == "build_env_setup.sh" ]] && continue
[[ $i == "conda_build.sh" ]] && continue
[[ $i == "metadata_conda_debug.yaml" ]] && continue
cp -r $i ${PREFIX}/nsight-compute
done
2 changes: 2 additions & 0 deletions recipes/nsight-compute/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
arm_variant_type: # [aarch64]
- sbsa # [aarch64]
61 changes: 61 additions & 0 deletions recipes/nsight-compute/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{% set name = "nsight-compute" %}
{% set version = "2022.4.0.15" %}
{% set cuda_version = "12.0" %}
jakirkham 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/nsight_compute/{{ platform }}/nsight_compute-{{ platform }}-{{ version }}-archive.{{ extension }}
sha256: f084e05eb4d2ba32aceb25e1dcfe03f2a50127630973722b65219cf9e986a139 # [linux64]
sha256: 20e58ce79681bc8fd39394cfb8f8316c177fe4175af3ae95c025996f45904732 # [ppc64le]
sha256: 7d0b3d4d01ce36657fa739496c7b0a9c627f5fa42021c1696ddd15e119bb05a4 # [aarch64]
sha256: 958da9986841c49cb5a2885d1e14e4c673ba94e4b404ef9389d083b7a0095d84 # [win]

build:
number: 0
skip: true # [osx]
missing_dso_whitelist:
adibbley marked this conversation as resolved.
Show resolved Hide resolved
- "*"
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
adibbley marked this conversation as resolved.
Show resolved Hide resolved

requirements:
build:
- {{ compiler("c") }}
- {{ compiler("cxx") }}
adibbley marked this conversation as resolved.
Show resolved Hide resolved
adibbley marked this conversation as resolved.
Show resolved Hide resolved
- sysroot_{{ target_platform }} 2.17
adibbley marked this conversation as resolved.
Show resolved Hide resolved
- arm-variant * {{ arm_variant_type }} # [aarch64]
host:
- cuda-version {{ cuda_version }}
adibbley marked this conversation as resolved.
Show resolved Hide resolved
run:
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
adibbley marked this conversation as resolved.
Show resolved Hide resolved
run_constrained:
- arm-variant * {{ arm_variant_type }} # [aarch64]

test:
commands:
adibbley marked this conversation as resolved.
Show resolved Hide resolved
- test -f $PREFIX/bin/ncu # [linux]
adibbley marked this conversation as resolved.
Show resolved Hide resolved
- test -d $PREFIX/nsight-compute # [linux]
- if not exist %PREFIX%\nsight-compute exit 1 # [win]

about:
home: https://developer.nvidia.com/nsight-compute
license_file: LICENSE
license: LicenseRef-NVIDIA-End-User-License-Agreement
license_url: https://docs.nvidia.com/cuda/eula/index.html
summary: NVIDIA Nsight Compute is an interactive kernel profiler for CUDA applications
description: |
NVIDIA Nsight Compute is an interactive kernel profiler for CUDA
applications. It provides detailed performance metrics and API
debugging via a user interface and command line tool.
doc_url: https://docs.nvidia.com/nsight-compute/NsightCompute/index.html

extra:
recipe-maintainers:
- adibbley