diff --git a/.azure-pipelines/azure-pipelines-linux.yml b/.azure-pipelines/azure-pipelines-linux.yml index 702a84e..974e878 100755 --- a/.azure-pipelines/azure-pipelines-linux.yml +++ b/.azure-pipelines/azure-pipelines-linux.yml @@ -8,18 +8,10 @@ jobs: vmImage: ubuntu-latest strategy: matrix: - linux_64_c_compiler_version10cuda_compiler_version11.1cxx_compiler_version10: - CONFIG: linux_64_c_compiler_version10cuda_compiler_version11.1cxx_compiler_version10 + linux_64_: + CONFIG: linux_64_ UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cuda:11.1 - linux_64_c_compiler_version7cuda_compiler_version10.2cxx_compiler_version7: - CONFIG: linux_64_c_compiler_version7cuda_compiler_version10.2cxx_compiler_version7 - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-cuda:10.2 - linux_64_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9: - CONFIG: linux_64_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9 - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cuda:11.0 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 timeoutInMinutes: 360 steps: diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 7578b53..8a96a72 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -8,14 +8,8 @@ jobs: vmImage: windows-2022 strategy: matrix: - win_64_cuda_compiler_version10.2: - CONFIG: win_64_cuda_compiler_version10.2 - UPLOAD_PACKAGES: 'True' - win_64_cuda_compiler_version11.0: - CONFIG: win_64_cuda_compiler_version11.0 - UPLOAD_PACKAGES: 'True' - win_64_cuda_compiler_version11.1: - CONFIG: win_64_cuda_compiler_version11.1 + win_64_: + CONFIG: win_64_ UPLOAD_PACKAGES: 'True' timeoutInMinutes: 360 variables: diff --git a/.ci_support/linux_64_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9.yaml b/.ci_support/linux_64_.yaml similarity index 61% rename from .ci_support/linux_64_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9.yaml rename to .ci_support/linux_64_.yaml index 4f2be01..0135956 100644 --- a/.ci_support/linux_64_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9.yaml +++ b/.ci_support/linux_64_.yaml @@ -1,28 +1,21 @@ c_compiler: - gcc c_compiler_version: -- '9' +- '11' cdt_name: - cos7 channel_sources: - conda-forge channel_targets: - conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '11.0' cxx_compiler: - gxx cxx_compiler_version: -- '9' +- '11' docker_image: -- quay.io/condaforge/linux-anvil-cuda:11.0 +- quay.io/condaforge/linux-anvil-cos7-x86_64 target_platform: - linux-64 zip_keys: - - c_compiler_version - cxx_compiler_version - - cuda_compiler_version - - cdt_name - - docker_image diff --git a/.ci_support/linux_64_c_compiler_version10cuda_compiler_version11.1cxx_compiler_version10.yaml b/.ci_support/linux_64_c_compiler_version10cuda_compiler_version11.1cxx_compiler_version10.yaml deleted file mode 100644 index 3231c2f..0000000 --- a/.ci_support/linux_64_c_compiler_version10cuda_compiler_version11.1cxx_compiler_version10.yaml +++ /dev/null @@ -1,28 +0,0 @@ -c_compiler: -- gcc -c_compiler_version: -- '10' -cdt_name: -- cos7 -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '11.1' -cxx_compiler: -- gxx -cxx_compiler_version: -- '10' -docker_image: -- quay.io/condaforge/linux-anvil-cuda:11.1 -target_platform: -- linux-64 -zip_keys: -- - c_compiler_version - - cxx_compiler_version - - cuda_compiler_version - - cdt_name - - docker_image diff --git a/.ci_support/linux_64_c_compiler_version7cuda_compiler_version10.2cxx_compiler_version7.yaml b/.ci_support/linux_64_c_compiler_version7cuda_compiler_version10.2cxx_compiler_version7.yaml deleted file mode 100644 index baf03c7..0000000 --- a/.ci_support/linux_64_c_compiler_version7cuda_compiler_version10.2cxx_compiler_version7.yaml +++ /dev/null @@ -1,28 +0,0 @@ -c_compiler: -- gcc -c_compiler_version: -- '7' -cdt_name: -- cos7 -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '10.2' -cxx_compiler: -- gxx -cxx_compiler_version: -- '7' -docker_image: -- quay.io/condaforge/linux-anvil-cos7-cuda:10.2 -target_platform: -- linux-64 -zip_keys: -- - c_compiler_version - - cxx_compiler_version - - cuda_compiler_version - - cdt_name - - docker_image diff --git a/.ci_support/linux_aarch64_cuda_compiler_version11.1.yaml b/.ci_support/linux_aarch64_.yaml similarity index 65% rename from .ci_support/linux_aarch64_cuda_compiler_version11.1.yaml rename to .ci_support/linux_aarch64_.yaml index 01b9abd..0f27694 100644 --- a/.ci_support/linux_aarch64_cuda_compiler_version11.1.yaml +++ b/.ci_support/linux_aarch64_.yaml @@ -1,9 +1,11 @@ BUILD: - aarch64-conda_cos7-linux-gnu +arm_variant_type: +- sbsa c_compiler: - gcc c_compiler_version: -- '9' +- '11' cdt_arch: - aarch64 cdt_name: @@ -12,21 +14,14 @@ channel_sources: - conda-forge channel_targets: - conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '11.1' cxx_compiler: - gxx cxx_compiler_version: -- '9' +- '11' docker_image: -- quay.io/condaforge/linux-anvil-aarch64-cuda:11.1 +- quay.io/condaforge/linux-anvil-aarch64 target_platform: - linux-aarch64 zip_keys: - - c_compiler_version - cxx_compiler_version - - cuda_compiler_version - - cdt_name - - docker_image diff --git a/.ci_support/linux_aarch64_cuda_compiler_version11.0.yaml b/.ci_support/linux_aarch64_cuda_compiler_version11.0.yaml deleted file mode 100644 index f1f8da0..0000000 --- a/.ci_support/linux_aarch64_cuda_compiler_version11.0.yaml +++ /dev/null @@ -1,32 +0,0 @@ -BUILD: -- aarch64-conda_cos7-linux-gnu -c_compiler: -- gcc -c_compiler_version: -- '9' -cdt_arch: -- aarch64 -cdt_name: -- cos7 -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '11.0' -cxx_compiler: -- gxx -cxx_compiler_version: -- '9' -docker_image: -- quay.io/condaforge/linux-anvil-aarch64-cuda:11.0 -target_platform: -- linux-aarch64 -zip_keys: -- - c_compiler_version - - cxx_compiler_version - - cuda_compiler_version - - cdt_name - - docker_image diff --git a/.ci_support/linux_ppc64le_c_compiler_version9cuda_compiler_version11.1cxx_compiler_version9.yaml b/.ci_support/linux_ppc64le_.yaml similarity index 60% rename from .ci_support/linux_ppc64le_c_compiler_version9cuda_compiler_version11.1cxx_compiler_version9.yaml rename to .ci_support/linux_ppc64le_.yaml index 4ad587a..a7fae6a 100644 --- a/.ci_support/linux_ppc64le_c_compiler_version9cuda_compiler_version11.1cxx_compiler_version9.yaml +++ b/.ci_support/linux_ppc64le_.yaml @@ -1,28 +1,21 @@ c_compiler: - gcc c_compiler_version: -- '9' +- '11' cdt_name: - cos7 channel_sources: - conda-forge channel_targets: - conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '11.1' cxx_compiler: - gxx cxx_compiler_version: -- '9' +- '11' docker_image: -- quay.io/condaforge/linux-anvil-ppc64le-cuda:11.1 +- quay.io/condaforge/linux-anvil-ppc64le target_platform: - linux-ppc64le zip_keys: - - c_compiler_version - cxx_compiler_version - - cuda_compiler_version - - cdt_name - - docker_image diff --git a/.ci_support/linux_ppc64le_c_compiler_version8cuda_compiler_version10.2cxx_compiler_version8.yaml b/.ci_support/linux_ppc64le_c_compiler_version8cuda_compiler_version10.2cxx_compiler_version8.yaml deleted file mode 100644 index a9b33bb..0000000 --- a/.ci_support/linux_ppc64le_c_compiler_version8cuda_compiler_version10.2cxx_compiler_version8.yaml +++ /dev/null @@ -1,28 +0,0 @@ -c_compiler: -- gcc -c_compiler_version: -- '8' -cdt_name: -- cos7 -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '10.2' -cxx_compiler: -- gxx -cxx_compiler_version: -- '8' -docker_image: -- quay.io/condaforge/linux-anvil-ppc64le-cuda:10.2 -target_platform: -- linux-ppc64le -zip_keys: -- - c_compiler_version - - cxx_compiler_version - - cuda_compiler_version - - cdt_name - - docker_image diff --git a/.ci_support/linux_ppc64le_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9.yaml b/.ci_support/linux_ppc64le_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9.yaml deleted file mode 100644 index ea49693..0000000 --- a/.ci_support/linux_ppc64le_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9.yaml +++ /dev/null @@ -1,28 +0,0 @@ -c_compiler: -- gcc -c_compiler_version: -- '9' -cdt_name: -- cos7 -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '11.0' -cxx_compiler: -- gxx -cxx_compiler_version: -- '9' -docker_image: -- quay.io/condaforge/linux-anvil-ppc64le-cuda:11.0 -target_platform: -- linux-ppc64le -zip_keys: -- - c_compiler_version - - cxx_compiler_version - - cuda_compiler_version - - cdt_name - - docker_image diff --git a/.ci_support/win_64_cuda_compiler_version10.2.yaml b/.ci_support/win_64_.yaml similarity index 71% rename from .ci_support/win_64_cuda_compiler_version10.2.yaml rename to .ci_support/win_64_.yaml index cfbfb60..2614db3 100644 --- a/.ci_support/win_64_cuda_compiler_version10.2.yaml +++ b/.ci_support/win_64_.yaml @@ -4,10 +4,6 @@ channel_sources: - conda-forge channel_targets: - conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '10.2' cxx_compiler: - vs2019 target_platform: diff --git a/.ci_support/win_64_cuda_compiler_version11.0.yaml b/.ci_support/win_64_cuda_compiler_version11.0.yaml deleted file mode 100644 index 7f50e85..0000000 --- a/.ci_support/win_64_cuda_compiler_version11.0.yaml +++ /dev/null @@ -1,14 +0,0 @@ -c_compiler: -- vs2019 -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '11.0' -cxx_compiler: -- vs2019 -target_platform: -- win-64 diff --git a/.ci_support/win_64_cuda_compiler_version11.1.yaml b/.ci_support/win_64_cuda_compiler_version11.1.yaml deleted file mode 100644 index 29750ca..0000000 --- a/.ci_support/win_64_cuda_compiler_version11.1.yaml +++ /dev/null @@ -1,14 +0,0 @@ -c_compiler: -- vs2019 -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- nvcc -cuda_compiler_version: -- '11.1' -cxx_compiler: -- vs2019 -target_platform: -- win-64 diff --git a/.travis.yml b/.travis.yml index 0035be3..58a72eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,27 +7,12 @@ language: generic matrix: include: - - env: CONFIG=linux_aarch64_cuda_compiler_version11.0 UPLOAD_PACKAGES=True PLATFORM=linux-aarch64 DOCKER_IMAGE=quay.io/condaforge/linux-anvil-aarch64-cuda:11.0 + - env: CONFIG=linux_aarch64_ UPLOAD_PACKAGES=True PLATFORM=linux-aarch64 DOCKER_IMAGE=quay.io/condaforge/linux-anvil-aarch64 os: linux arch: arm64 dist: focal - - env: CONFIG=linux_aarch64_cuda_compiler_version11.1 UPLOAD_PACKAGES=True PLATFORM=linux-aarch64 DOCKER_IMAGE=quay.io/condaforge/linux-anvil-aarch64-cuda:11.1 - os: linux - arch: arm64 - dist: focal - - - env: CONFIG=linux_ppc64le_c_compiler_version8cuda_compiler_version10.2cxx_compiler_version8 UPLOAD_PACKAGES=True PLATFORM=linux-ppc64le DOCKER_IMAGE=quay.io/condaforge/linux-anvil-ppc64le-cuda:10.2 - os: linux - arch: ppc64le - dist: focal - - - env: CONFIG=linux_ppc64le_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9 UPLOAD_PACKAGES=True PLATFORM=linux-ppc64le DOCKER_IMAGE=quay.io/condaforge/linux-anvil-ppc64le-cuda:11.0 - os: linux - arch: ppc64le - dist: focal - - - env: CONFIG=linux_ppc64le_c_compiler_version9cuda_compiler_version11.1cxx_compiler_version9 UPLOAD_PACKAGES=True PLATFORM=linux-ppc64le DOCKER_IMAGE=quay.io/condaforge/linux-anvil-ppc64le-cuda:11.1 + - env: CONFIG=linux_ppc64le_ UPLOAD_PACKAGES=True PLATFORM=linux-ppc64le DOCKER_IMAGE=quay.io/condaforge/linux-anvil-ppc64le os: linux arch: ppc64le dist: focal diff --git a/README.md b/README.md index 86f42e1..9dd0c88 100644 --- a/README.md +++ b/README.md @@ -50,80 +50,31 @@ Current build status - + - + - + - + - - - - - - - - - - - - - - - - - - - - - @@ -252,8 +203,6 @@ In order to produce a uniquely identifiable distribution: the [``build/number``](https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#build-number-and-string) back to 0. - - Feedstock Maintainers ===================== diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml index c54f6a3..52229a8 100644 --- a/recipe/conda_build_config.yaml +++ b/recipe/conda_build_config.yaml @@ -1,70 +1,2 @@ arm_variant_type: # [aarch64] - sbsa # [aarch64] - -# The added keys below are needed to enable ppc64le/aarch64 CUDA builds; the linux64 -# and win64 builds are already handled in the conda-forge-pinning feedstock. Once we -# migrate to enable CUDA builds on all supported platforms, these can be removed too. - -docker_image: # [os.environ.get("BUILD_PLATFORM", "").startswith("linux")] - - quay.io/condaforge/linux-anvil-ppc64le-cuda:10.2 # [ppc64le and os.environ.get("BUILD_PLATFORM") == "linux-ppc64le"] - - quay.io/condaforge/linux-anvil-ppc64le-cuda:11.0 # [ppc64le and os.environ.get("BUILD_PLATFORM") == "linux-ppc64le"] - - quay.io/condaforge/linux-anvil-ppc64le-cuda:11.1 # [ppc64le and os.environ.get("BUILD_PLATFORM") == "linux-ppc64le"] - - quay.io/condaforge/linux-anvil-ppc64le-cuda:11.2 # [ppc64le and os.environ.get("BUILD_PLATFORM") == "linux-ppc64le"] - - quay.io/condaforge/linux-anvil-aarch64-cuda:11.0 # [aarch64 and os.environ.get("BUILD_PLATFORM") == "linux-aarch64"] - - quay.io/condaforge/linux-anvil-aarch64-cuda:11.1 # [aarch64 and os.environ.get("BUILD_PLATFORM") == "linux-aarch64"] - - quay.io/condaforge/linux-anvil-aarch64-cuda:11.2 # [aarch64 and os.environ.get("BUILD_PLATFORM") == "linux-aarch64"] - -c_compiler_version: # [linux] - - 8 # [ppc64le] - - 9 # [ppc64le] - - 9 # [ppc64le] - - 9 # [ppc64le] - - 9 # [aarch64] - - 9 # [aarch64] - - 9 # [aarch64] -cxx_compiler_version: # [linux] - - 8 # [ppc64le] - - 9 # [ppc64le] - - 9 # [ppc64le] - - 9 # [ppc64le] - - 9 # [aarch64] - - 9 # [aarch64] - - 9 # [aarch64] -fortran_compiler_version: # [linux] - - 8 # [ppc64le] - - 9 # [ppc64le] - - 9 # [ppc64le] - - 9 # [ppc64le] - - 9 # [aarch64] - - 9 # [aarch64] - - 9 # [aarch64] - -cuda_compiler: - - nvcc - -cuda_compiler_version: - - 10.2 # [ppc64le] - - 11.0 # [ppc64le] - - 11.1 # [ppc64le] - - 11.2 # [ppc64le] - - 11.0 # [aarch64] - - 11.1 # [aarch64] - - 11.2 # [aarch64] - -cudnn: - - 8 # [ppc64le] - - undefined # [ppc64le] - - undefined # [ppc64le] - - undefined # [ppc64le] - - undefined # [aarch64] - - undefined # [aarch64] - - undefined # [aarch64] - -cdt_name: # [linux] - - cos7 # [ppc64le] - - cos7 # [ppc64le] - - cos7 # [ppc64le] - - cos7 # [ppc64le] - - cos7 # [aarch64] - - cos7 # [aarch64] - - cos7 # [aarch64] diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 188a029..f7c4c62 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,78 +1,71 @@ {% set version = "1.7.0.1" %} +{% set cuda_major = "12" %} +{% 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: cutensor version: {{ version }} source: - url: https://developer.download.nvidia.com/compute/cutensor/libcutensor/linux-x86_64/libcutensor-linux-x86_64-{{ version }}-archive.tar.xz # [linux64] - url: https://developer.download.nvidia.com/compute/cutensor/libcutensor/linux-ppc64le/libcutensor-linux-ppc64le-{{ version }}-archive.tar.xz # [ppc64le] - url: https://developer.download.nvidia.com/compute/cutensor/libcutensor/linux-sbsa/libcutensor-linux-sbsa-{{ version }}-archive.tar.xz # [aarch64] - url: https://developer.download.nvidia.com/compute/cutensor/libcutensor/windows-x86_64/libcutensor-windows-x86_64-{{ version }}-archive.zip # [win64] - + url: https://developer.download.nvidia.com/compute/cutensor/redist/libcutensor/{{ platform }}/libcutensor-{{ platform }}-{{ version }}-archive.{{ extension }} sha256: dd3557891371a19e73e7c955efe5383b0bee954aba6a30e4892b0e7acb9deb26 # [linux64] sha256: af4ad5e29dcb636f1bf941ed1fd7fc8053eeec4813fbc0b41581e114438e84c8 # [ppc64le] sha256: c31f8e4386539434a5d1643ebfed74572011783b4e21b62be52003e3a9de3720 # [aarch64] sha256: cdbb53bcc1c7b20ee0aa2dee781644a324d2d5e8065944039024fe22d6b822ab # [win64] build: - number: 0 - # cuTENSOR v1.3.1 supports CUDA 10.2, 11.0, and 11.1+ - skip: true # [win32 or cuda_compiler_version not in ("10.2", "11.0", "11.1")] - script_env: - # for some reason /usr/local/cuda is not added to $PATH in ppc64le's docker image - - CUDA_HOME # [ppc64le or aarch64] + number: 1 + # this recipe only supports CUDA 12; the other CUDA versions are in the cuda-11 branch + skip: true # [win32 or osx] script: - mkdir -p $PREFIX/include # [linux] - mv include/* $PREFIX/include/ # [linux] - mkdir -p $PREFIX/lib # [linux] - - mv lib/{{ cuda_compiler_version }}/*.so* $PREFIX/lib/ # [linux and cuda_compiler_version in ("10.2", "11.0")] - - mv lib/11/*.so* $PREFIX/lib/ # [linux and cuda_compiler_version == "11.1"] + - mv lib/{{ cuda_major }}/*.so* $PREFIX/lib/ # [linux] - patchelf --add-needed libcudart.so $PREFIX/lib/libcutensor.so # [ppc64le] - copy include\\cutensor.h %LIBRARY_INC%\\ # [win64] - copy include\\cutensorMg.h %LIBRARY_INC%\\ # [win64] - mkdir %LIBRARY_INC%\\cutensor # [win64] - copy include\\cutensor\\types.h %LIBRARY_INC%\\cutensor # [win64] - - del lib\\{{ cuda_compiler_version }}\\*static* # [win64 and cuda_compiler_version in ("10.2", "11.0")] - - copy lib\\{{ cuda_compiler_version }}\\*.dll %LIBRARY_BIN%\\ # [win64 and cuda_compiler_version in ("10.2", "11.0")] - - copy lib\\{{ cuda_compiler_version }}\\*.lib %LIBRARY_LIB%\\ # [win64 and cuda_compiler_version in ("10.2", "11.0")] - - del lib\\11\\*static* # [win64 and cuda_compiler_version in ("11.1", )] - - copy lib\\11\\*.dll %LIBRARY_BIN%\\ # [win64 and cuda_compiler_version in ("11.1", )] - - copy lib\\11\\*.lib %LIBRARY_LIB%\\ # [win64 and cuda_compiler_version in ("11.1", )] - ignore_run_exports: - - cudatoolkit + - del lib\\{{ cuda_major }}\\*static* # [win64] + - copy lib\\{{ cuda_major }}\\*.dll %LIBRARY_BIN%\\ # [win64] + - copy lib\\{{ cuda_major }}\\*.lib %LIBRARY_LIB%\\ # [win64] run_exports: - {{ pin_subpackage('cutensor') }} missing_dso_whitelist: - # suppress warning, as these are included in the run dependency - - '*/libcublasLt.so*' # [linux and cuda_compiler_version in ("11.0", "11.1")] - - '*/cublasLt64*.dll' # [win64 and cuda_compiler_version in ("11.0", "11.1")] + - "*/libcuda.so.*" # [linux] + - "*/nvcuda.dll" # [win] requirements: build: - {{ compiler('c') }} - - {{ compiler('cuda') }} - - sysroot_linux-64 2.17 # [linux64] + - {{ compiler('cxx') }} + - arm-variant * {{ arm_variant_type }} # [aarch64] + - sysroot_{{ target_platform }} 2.17 # [linux] host: - patchelf >=0.12 # [linux] + - cuda-version {{ cuda_major }}.0 + - libcublas run: - - cudatoolkit {{ cuda_compiler_version }} # [cuda_compiler_version in ("10.2", "11.0")] - - cudatoolkit >=11.1,<12 # [cuda_compiler_version == "11.1"] + - {{ pin_compatible("cuda-version", max_pin="x") }} + - libcublas run_constrained: # Only GLIBC_2.17 or older symbols present - __glibc >=2.17 # [linux] + - arm-variant * {{ arm_variant_type }} # [aarch64] test: requires: - git - {{ compiler('c') }} - {{ compiler('cxx') }} - - {{ compiler('cuda') }} - - sysroot_linux-64 2.17 # [linux] - # make sure we pick up the version matching the docker, - # or the linker would complain - - cudatoolkit {{ cuda_compiler_version }} + - sysroot_{{ target_platform }} 2.17 # [linux] files: - test_load_elf.c # [linux] diff --git a/recipe/run_test.bat b/recipe/run_test.bat index 8e13fd9..b9da78c 100644 --- a/recipe/run_test.bat +++ b/recipe/run_test.bat @@ -9,9 +9,10 @@ if not exist %LIBRARY_BIN%\\cutensorMg.dll exit 1 if not exist %LIBRARY_LIB%\\cutensor.lib exit 1 if not exist %LIBRARY_LIB%\\cutensorMg.lib exit 1 -git clone "https://github.com/NVIDIA/CUDALibrarySamples.git" sample_linux -cd sample_linux\cuTENSOR -call nvcc -I%LIBRARY_INC% -L%LIBRARY_LIB% -lcutensor contraction.cu -o contraction -call nvcc -I%LIBRARY_INC% -L%LIBRARY_LIB% -lcutensor reduction.cu -o reduction -cd ..\cuTENSORMg -call nvcc -I%LIBRARY_INC% -L%LIBRARY_LIB% -lcutensorMg -lcutensor contraction_multi_gpu.cu -o contraction_multi_gpu +REM The tests below require CUDA 12 compilers, which are not yet available. +REM git clone "https://github.com/NVIDIA/CUDALibrarySamples.git" sample_linux +REM cd sample_linux\cuTENSOR +REM call nvcc -I%LIBRARY_INC% -L%LIBRARY_LIB% -lcutensor contraction.cu -o contraction +REM call nvcc -I%LIBRARY_INC% -L%LIBRARY_LIB% -lcutensor reduction.cu -o reduction +REM cd ..\cuTENSORMg +REM call nvcc -I%LIBRARY_INC% -L%LIBRARY_LIB% -lcutensorMg -lcutensor contraction_multi_gpu.cu -o contraction_multi_gpu diff --git a/recipe/run_test.sh b/recipe/run_test.sh index 9f459ad..99bc248 100644 --- a/recipe/run_test.sh +++ b/recipe/run_test.sh @@ -6,22 +6,23 @@ test -f $PREFIX/include/cutensorMg.h test -f $PREFIX/include/cutensor/types.h test -f $PREFIX/lib/libcutensor.so test -f $PREFIX/lib/libcutensorMg.so -${GCC} test_load_elf.c -std=c99 -Werror -ldl -o test_load_elf -./test_load_elf $PREFIX/lib/libcutensor.so -./test_load_elf $PREFIX/lib/libcutensorMg.so +# The tests below require CUDA 12 compilers, which are not yet available. +#${GCC} test_load_elf.c -std=c99 -Werror -ldl -o test_load_elf +#./test_load_elf $PREFIX/lib/libcutensor.so +#./test_load_elf $PREFIX/lib/libcutensorMg.so -NVCC_FLAGS="" -# Workaround __ieee128 error; see https://github.com/LLNL/blt/issues/341 -if [[ $target_platform == linux-ppc64le && $cuda_compiler_version == 10.* ]]; then - NVCC_FLAGS+=" -Xcompiler -mno-float128" -fi - -git clone https://github.com/NVIDIA/CUDALibrarySamples.git sample_linux/ -cd sample_linux/cuTENSOR/ -error_log=$(nvcc $NVCC_FLAGS --std=c++11 -I$PREFIX/include -L$PREFIX/lib -lcutensor -lcudart contraction.cu -o contraction 2>&1) -echo $error_log -error_log=$(nvcc $NVCC_FLAGS --std=c++11 -I$PREFIX/include -L$PREFIX/lib -lcutensor -lcudart reduction.cu -o reduction 2>&1) -echo $error_log -cd ../cuTENSORMg/ -error_log=$(nvcc $NVCC_FLAGS --std=c++11 -I$PREFIX/include -L$PREFIX/lib -lcutensorMg -lcutensor -lcudart contraction_multi_gpu.cu -o contraction_multi_gpu 2>&1) -echo $error_log +#NVCC_FLAGS="" +## Workaround __ieee128 error; see https://github.com/LLNL/blt/issues/341 +#if [[ $target_platform == linux-ppc64le && $cuda_compiler_version == 10.* ]]; then +# NVCC_FLAGS+=" -Xcompiler -mno-float128" +#fi +# +#git clone https://github.com/NVIDIA/CUDALibrarySamples.git sample_linux/ +#cd sample_linux/cuTENSOR/ +#error_log=$(nvcc $NVCC_FLAGS --std=c++11 -I$PREFIX/include -L$PREFIX/lib -lcutensor -lcudart contraction.cu -o contraction 2>&1) +#echo $error_log +#error_log=$(nvcc $NVCC_FLAGS --std=c++11 -I$PREFIX/include -L$PREFIX/lib -lcutensor -lcudart reduction.cu -o reduction 2>&1) +#echo $error_log +#cd ../cuTENSORMg/ +#error_log=$(nvcc $NVCC_FLAGS --std=c++11 -I$PREFIX/include -L$PREFIX/lib -lcutensorMg -lcutensor -lcudart contraction_multi_gpu.cu -o contraction_multi_gpu 2>&1) +#echo $error_log
VariantStatus
linux_64_c_compiler_version10cuda_compiler_version11.1cxx_compiler_version10linux_64 - variant + variant
linux_64_c_compiler_version7cuda_compiler_version10.2cxx_compiler_version7linux_aarch64 - variant + variant
linux_64_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9linux_ppc64le - variant + variant
linux_aarch64_cuda_compiler_version11.0win_64 - variant - -
linux_aarch64_cuda_compiler_version11.1 - - variant - -
linux_ppc64le_c_compiler_version8cuda_compiler_version10.2cxx_compiler_version8 - - variant - -
linux_ppc64le_c_compiler_version9cuda_compiler_version11.0cxx_compiler_version9 - - variant - -
linux_ppc64le_c_compiler_version9cuda_compiler_version11.1cxx_compiler_version9 - - variant - -
win_64_cuda_compiler_version10.2 - - variant - -
win_64_cuda_compiler_version11.0 - - variant - -
win_64_cuda_compiler_version11.1 - - variant + variant