conda-forge / cuda-feedstock

A conda-smithy repository for cuda.
BSD 3-Clause "New" or "Revised" License
2 stars 9 forks source link

InvalidSpec: The package "nvidia/linux-64::cuda-compiler==12.5.0=0" is not available for the specified platform #34

Closed stephen-ask closed 4 months ago

stephen-ask commented 5 months ago

Solution to issue cannot be found in the documentation.

Issue

While installing cuda compiler 12.5.0 exit with error. mentioned below conda install -c nvidia cuda-compiler=12.5.0

InvalidSpec: The package "nvidia/linux-64::cuda-compiler==12.5.0=0" is not available for the specified platform

Installed packages

_libgcc_mutex             0.1                 conda_forge    conda-forge                                                _openmp_mutex             4.5                       2_gnu    conda-forge                                                _sysroot_linux-64_curr_repodata_hack 3                   h69a702a_14    conda-forge                                     absl-py                   1.0.0                    pypi_0    pypi                                                       anaconda-anon-usage       0.4.4           py312hfc0e8ea_100                                                             archspec                  0.2.3              pyhd3eb1b0_0                                                               binutils_impl_linux-64    2.38                 h2a08ee3_1                                                               binutils_linux-64         2.38.0               hc2dff05_0                                                               boltons                   23.0.0          py312h06a4308_0                                                               brotli-python             1.0.9           py312h6a678d5_8                                                               bzip2                     1.0.8                h5eee18b_6                                                               c-ares                    1.19.1               h5eee18b_0                                                               ca-certificates           2024.6.2             hbcca054_0    conda-forge                                                certifi                   2024.6.2           pyhd8ed1ab_0    conda-forge                                                cffi                      1.16.0          py312h5eee18b_1                                                               charset-normalizer        3.3.2                    pypi_0    pypi                                                       conda                     24.5.0          py312h7900ff3_0    conda-forge                                                conda-content-trust       0.2.0           py312h06a4308_1                                                               conda-libmamba-solver     24.1.0             pyhd3eb1b0_0                                                               conda-package-handling    2.3.0           py312h06a4308_0                                                               conda-package-streaming   0.10.0          py312h06a4308_0                                                               cryptography              42.0.5          py312hdda0065_1                                                               cuda-cccl_linux-64        12.5.39                       0    nvidia                                                     cuda-compiler             12.5.0                        0    nvidia                                                     cuda-crt-dev_linux-64     12.5.40                       0    nvidia                                                     cuda-crt-tools            12.5.40                       0    nvidia                                                     cuda-cudart               12.5.39                       0    nvidia                                                     cuda-cudart-dev           12.5.39                       0    nvidia                                                     cuda-cudart-dev_linux-64  12.5.39                       0    nvidia                                                     cuda-cudart-static        12.5.39                       0    nvidia                                                     cuda-cudart-static_linux-64 12.5.39                       0    nvidia                                                   cuda-cudart_linux-64      12.5.39                       0    nvidia                                                     cuda-cuobjdump            12.5.39                       0    nvidia                                                     cuda-cuxxfilt             12.5.39                       0    nvidia                                                     cuda-driver-dev_linux-64  12.5.39                       0    nvidia                                                     cuda-nvcc                 12.5.40                       0    nvidia                                                     cuda-nvcc-dev_linux-64    12.5.40                       0    nvidia                                                     cuda-nvcc-impl            12.5.40                       0    nvidia                                                     cuda-nvcc-tools           12.5.40                       0    nvidia                                                     cuda-nvcc_linux-64        12.5.40                       0    nvidia                                                     cuda-nvdisasm             12.5.39                       0    nvidia                                                     cuda-nvprune              12.5.39                       0    nvidia                                                     cuda-nvvm-dev_linux-64    12.5.40                       0    nvidia                                                     cuda-nvvm-impl            12.5.40                       0    nvidia                                                     cuda-nvvm-tools           12.5.40                       0    nvidia                                                     cuda-version              12.5                          3    nvidia                                                     distro                    1.9.0           py312h06a4308_0                                                               docker                    7.1.0                    pypi_0    pypi                                                       expat                     2.6.2                h6a678d5_0                                                               fmt                       9.1.0                hdb19cb5_1                                                               frozendict                2.4.2           py312h06a4308_0                                                               gcc_impl_linux-64         11.2.0               h1234567_1                                                               gcc_linux-64              11.2.0               h5c386dc_0                                                               gxx_impl_linux-64         11.2.0               h1234567_1                                                               gxx_linux-64              11.2.0               hc2dff05_0                                                               icu                       73.1                 h6a678d5_0                                                               idna                      3.7             py312h06a4308_0                                                               jsonpatch                 1.33            py312h06a4308_1                                                               jsonpointer               2.1                pyhd3eb1b0_0                                                               kernel-headers_linux-64   3.10.0              h4a8ded7_14    conda-forge                                                krb5                      1.20.1               h143b758_1                                                               ld_impl_linux-64          2.38                 h1181459_1                                                               libarchive                3.6.2                h6ac8c49_3                                                               libcurl                   8.7.1                h251f7ec_0                                                               libedit                   3.1.20230828         h5eee18b_0                                                               libev                     4.33                 h7f8727e_1                                                               libexpat                  2.6.2                h59595ed_0    conda-forge                                                libffi                    3.4.4                h6a678d5_1                                                               libgcc-devel_linux-64     11.2.0               h1234567_1                                                               libgcc-ng                 13.2.0               h77fa898_9    conda-forge                                                libgomp                   13.2.0               h77fa898_9    conda-forge                                                libmamba                  1.5.8                hfe524e5_2                                                               libmambapy                1.5.8           py312h2dafd23_2                                                               libnghttp2                1.57.0               h2d74bed_0                                                               libnsl                    2.0.1                hd590300_0    conda-forge                                                libsolv                   0.7.24               he621ea3_1                                                               libsqlite                 3.46.0               hde9e2c9_0    conda-forge                                                libssh2                   1.11.0               h251f7ec_0                                                               libstdcxx-devel_linux-64  11.2.0               h1234567_1                                                               libstdcxx-ng              11.2.0               h1234567_1                                                               libuuid                   2.38.1               h0b41bf4_0    conda-forge                                                libxcrypt                 4.4.36               hd590300_1    conda-forge                                                libxml2                   2.10.4               hfdd30dd_2                                                               libzlib                   1.2.13               h4ab18f5_6    conda-forge                                                lz4-c                     1.9.4                h6a678d5_1                                                               menuinst                  2.1.1           py312h06a4308_0                                                               ncurses                   6.4                  h6a678d5_0                                                               openssl                   3.3.1                h4ab18f5_0    conda-forge                                                packaging                 23.2            py312h06a4308_0                                                               pcre2                     10.42                hebb0a14_1                                                               pip                       24.0            py312h06a4308_0                                                               platformdirs              3.10.0          py312h06a4308_0                                                               pluggy                    1.0.0           py312h06a4308_1                                                               pybind11-abi              5                    hd3eb1b0_0                                                               pycosat                   0.6.6           py312h5eee18b_1                                                               pycparser                 2.21               pyhd3eb1b0_0                                                               pysocks                   1.7.1           py312h06a4308_0                                                               python                    3.12.2          hab00c5b_0_cpython    conda-forge                                             python_abi                3.12                    4_cp312    conda-forge                                                readline                  8.2                  h5eee18b_0                                                               reproc                    14.2.4               h6a678d5_2                                                               reproc-cpp                14.2.4               h6a678d5_2                                                               requests                  2.30.0                   pypi_0    pypi                                                       ruamel.yaml               0.17.21         py312h5eee18b_0                                                               setuptools                69.5.1          py312h06a4308_0                                                               six                       1.16.0                   pypi_0    pypi                                                       sqlite                    3.45.3               h5eee18b_0                                                               sysroot_linux-64          2.17                h4a8ded7_14    conda-forge                                                tk                        8.6.14               h39e8969_0                                                               tqdm                      4.66.4          py312he106c6f_0                                                               truststore                0.8.0           py312h06a4308_0                                                               tzdata                    2024a                h04d1e81_0                                                               urllib3                   2.2.1           py312h06a4308_0                                                               websocket-client          1.8.0                    pypi_0    pypi                                                       wheel                     0.43.0          py312h06a4308_0                                                               xz                        5.4.6                h5eee18b_1                                                               yaml-cpp                  0.8.0                h6a678d5_1                                                               zlib                      1.2.13               h4ab18f5_6    conda-forge                                                zstandard                 0.22.0          py312h2c38b39_0                                                               zstd                      1.5.5                hc292b87_2

Environment info

# Install conda packages.
ENV PATH="/opt/conda/bin:$PATH"
ENV LD_LIBRARY_PATH="/opt/conda/lib:$LD_LIBRARY_PATH"
RUN conda install -qy conda==24.5.0 pip python=3.11 \
 && conda install -y -c nvidia cuda=12.2.2 cuda-tools=12.2.2 cuda-toolkit=12.2.2 cuda-version=12.2 cuda-command-line-tools=12.2.2 cuda-compiler=12.2.2 cuda-runtime=12.2.2
RUN conda install -y -c conda-forge openmm=8.0.0 pdbfixer \
    && conda clean --all --force-pkgs-dirs --yes
jakirkham commented 4 months ago

It looks like this starts with CUDA 12.2 and then tries to install CUDA 12.5

Could you please try directly installing with CUDA 12.5?

The following seems to work for me

``` $ conda create -n test -c nvidia cuda-compiler=12.5 --dry-run Channels: - nvidia - conda-forge Platform: linux-aarch64 Collecting package metadata (repodata.json): done Solving environment: done ## Package Plan ## environment location: /opt/conda/envs/test added / updated specs: - cuda-compiler=12.5 The following packages will be downloaded: package | build ---------------------------|----------------- _openmp_mutex-4.5 | 2_gnu 23 KB conda-forge _sysroot_linux-aarch64_curr_repodata_hack-3| h43d7e78_2 22 KB conda-forge binutils_impl_linux-aarch64-2.40| hf54a868_7 5.8 MB conda-forge binutils_linux-aarch64-2.40| h1f91aba_9 29 KB conda-forge cuda-cccl_linux-aarch64-12.5.39| 0 1.7 MB nvidia cuda-compiler-12.5.1 | 0 16 KB nvidia cuda-crt-dev_linux-aarch64-12.5.82| 0 79 KB nvidia cuda-crt-tools-12.5.82 | 0 19 KB nvidia cuda-cudart-12.5.82 | 0 17 KB nvidia cuda-cudart-dev-12.5.82 | 0 17 KB nvidia cuda-cudart-dev_linux-aarch64-12.5.82| 0 462 KB nvidia cuda-cudart-static-12.5.82 | 0 17 KB nvidia cuda-cudart-static_linux-aarch64-12.5.82| 0 1.0 MB nvidia cuda-cudart_linux-aarch64-12.5.82| 0 228 KB nvidia cuda-cuobjdump-12.5.39 | 0 286 KB nvidia cuda-cuxxfilt-12.5.82 | 0 276 KB nvidia cuda-driver-dev_linux-aarch64-12.5.82| 0 35 KB nvidia cuda-nvcc-12.5.82 | 0 16 KB nvidia cuda-nvcc-dev_linux-aarch64-12.5.82| 0 13.5 MB nvidia cuda-nvcc-impl-12.5.82 | 0 18 KB nvidia cuda-nvcc-tools-12.5.82 | 0 22.7 MB nvidia cuda-nvcc_linux-aarch64-12.5.82| 0 18 KB nvidia cuda-nvdisasm-12.5.39 | 0 47.8 MB nvidia cuda-nvprune-12.5.82 | 0 63 KB nvidia cuda-nvvm-dev_linux-aarch64-12.5.82| 0 17 KB nvidia cuda-nvvm-impl-12.5.82 | 0 9.8 MB nvidia cuda-nvvm-tools-12.5.82 | 0 12.6 MB nvidia cuda-version-12.5 | 3 16 KB nvidia gcc_impl_linux-aarch64-12.3.0| h3d98823_13 55.2 MB conda-forge gcc_linux-aarch64-12.3.0 | ha52a6ea_9 31 KB conda-forge gxx_impl_linux-aarch64-12.3.0| hba91e99_13 11.3 MB conda-forge gxx_linux-aarch64-12.3.0 | h9d1f256_9 29 KB conda-forge kernel-headers_linux-aarch64-4.18.0| h05a177a_2 1.2 MB conda-forge libgcc-devel_linux-aarch64-12.3.0| h6144e03_113 306 KB conda-forge libsanitizer-12.3.0 | h57e2e72_13 3.8 MB conda-forge libstdcxx-devel_linux-aarch64-12.3.0| h6144e03_113 9.8 MB conda-forge sysroot_linux-aarch64-2.28 | h05a177a_2 24.1 MB conda-forge ------------------------------------------------------------ Total: 222.3 MB The following NEW packages will be INSTALLED: _openmp_mutex conda-forge/linux-aarch64::_openmp_mutex-4.5-2_gnu _sysroot_linux-aa~ conda-forge/noarch::_sysroot_linux-aarch64_curr_repodata_hack-3-h43d7e78_2 binutils_impl_lin~ conda-forge/linux-aarch64::binutils_impl_linux-aarch64-2.40-hf54a868_7 binutils_linux-aa~ conda-forge/linux-aarch64::binutils_linux-aarch64-2.40-h1f91aba_9 cuda-cccl_linux-a~ nvidia/noarch::cuda-cccl_linux-aarch64-12.5.39-0 cuda-compiler nvidia/linux-aarch64::cuda-compiler-12.5.1-0 cuda-crt-dev_linu~ nvidia/noarch::cuda-crt-dev_linux-aarch64-12.5.82-0 cuda-crt-tools nvidia/linux-aarch64::cuda-crt-tools-12.5.82-0 cuda-cudart nvidia/linux-aarch64::cuda-cudart-12.5.82-0 cuda-cudart-dev nvidia/linux-aarch64::cuda-cudart-dev-12.5.82-0 cuda-cudart-dev_l~ nvidia/noarch::cuda-cudart-dev_linux-aarch64-12.5.82-0 cuda-cudart-static nvidia/linux-aarch64::cuda-cudart-static-12.5.82-0 cuda-cudart-stati~ nvidia/noarch::cuda-cudart-static_linux-aarch64-12.5.82-0 cuda-cudart_linux~ nvidia/noarch::cuda-cudart_linux-aarch64-12.5.82-0 cuda-cuobjdump nvidia/linux-aarch64::cuda-cuobjdump-12.5.39-0 cuda-cuxxfilt nvidia/linux-aarch64::cuda-cuxxfilt-12.5.82-0 cuda-driver-dev_l~ nvidia/noarch::cuda-driver-dev_linux-aarch64-12.5.82-0 cuda-nvcc nvidia/linux-aarch64::cuda-nvcc-12.5.82-0 cuda-nvcc-dev_lin~ nvidia/noarch::cuda-nvcc-dev_linux-aarch64-12.5.82-0 cuda-nvcc-impl nvidia/linux-aarch64::cuda-nvcc-impl-12.5.82-0 cuda-nvcc-tools nvidia/linux-aarch64::cuda-nvcc-tools-12.5.82-0 cuda-nvcc_linux-a~ nvidia/linux-aarch64::cuda-nvcc_linux-aarch64-12.5.82-0 cuda-nvdisasm nvidia/linux-aarch64::cuda-nvdisasm-12.5.39-0 cuda-nvprune nvidia/linux-aarch64::cuda-nvprune-12.5.82-0 cuda-nvvm-dev_lin~ nvidia/noarch::cuda-nvvm-dev_linux-aarch64-12.5.82-0 cuda-nvvm-impl nvidia/linux-aarch64::cuda-nvvm-impl-12.5.82-0 cuda-nvvm-tools nvidia/linux-aarch64::cuda-nvvm-tools-12.5.82-0 cuda-version nvidia/noarch::cuda-version-12.5-3 gcc_impl_linux-aa~ conda-forge/linux-aarch64::gcc_impl_linux-aarch64-12.3.0-h3d98823_13 gcc_linux-aarch64 conda-forge/linux-aarch64::gcc_linux-aarch64-12.3.0-ha52a6ea_9 gxx_impl_linux-aa~ conda-forge/linux-aarch64::gxx_impl_linux-aarch64-12.3.0-hba91e99_13 gxx_linux-aarch64 conda-forge/linux-aarch64::gxx_linux-aarch64-12.3.0-h9d1f256_9 kernel-headers_li~ conda-forge/noarch::kernel-headers_linux-aarch64-4.18.0-h05a177a_2 ld_impl_linux-aar~ conda-forge/linux-aarch64::ld_impl_linux-aarch64-2.40-h9fc2d93_7 libgcc-devel_linu~ conda-forge/noarch::libgcc-devel_linux-aarch64-12.3.0-h6144e03_113 libgcc-ng conda-forge/linux-aarch64::libgcc-ng-14.1.0-he277a41_0 libgomp conda-forge/linux-aarch64::libgomp-14.1.0-he277a41_0 libsanitizer conda-forge/linux-aarch64::libsanitizer-12.3.0-h57e2e72_13 libstdcxx-devel_l~ conda-forge/noarch::libstdcxx-devel_linux-aarch64-12.3.0-h6144e03_113 libstdcxx-ng conda-forge/linux-aarch64::libstdcxx-ng-14.1.0-h3f4de04_0 sysroot_linux-aar~ conda-forge/noarch::sysroot_linux-aarch64-2.28-h05a177a_2 DryRunExit: Dry run. Exiting. ```
jakirkham commented 4 months ago

Closing as answered. Though please reach back out if you still have questions