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

/cuPDLP-C/cupdlp/cuda/cupdlp_cudalinalg.cu(18): error: identifier "CUSPARSE_SPMV_CSR_ALG2" is undefined #29

Open
ReedCao opened this issue Apr 18, 2024 · 4 comments

Comments

@ReedCao
Copy link

ReedCao commented Apr 18, 2024

error happens when

cmake --build . --target plc

/cuPDLP-C/cupdlp/cuda/cupdlp_cudalinalg.cu(18): error: identifier "CUSPARSE_SPMV_CSR_ALG2" is undefined

@SkyLiu0
Copy link
Collaborator

SkyLiu0 commented Apr 19, 2024

Hi, thank you for your response. Currently, please compile with HiGHS 1.6.0 and CUDA 12.3 (I have just added this to the README file).

@ReedCao
Copy link
Author

ReedCao commented Apr 30, 2024

it has to be CUDA 12.3? how about 12.4?

I have tried to ceate conda env with Cuda 12.3. however, it keeps installing something relevant to 12.4.

(base) qboson@qboson-Precision-3660:~$ conda create -n reed python=3.8 cuda=12.3
WARNING: A conda environment already exists at '/home/qboson/miniconda3/envs/reed'
Remove existing environment (y/[n])? y

Channels:

  • defaults
    Platform: linux-64
    Collecting package metadata (repodata.json): done
    Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • cuda=12.3*

Current channels:

  • defaults

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

(base) qboson@qboson-Precision-3660:~$ conda create -n reed python=3.8 cuda=12.3 -c nvidia
Channels:

  • nvidia
  • defaults
    Platform: linux-64
    Collecting package metadata (repodata.json): done
    Solving environment: done

Package Plan

environment location: /home/qboson/miniconda3/envs/reed

added / updated specs:
- cuda=12.3
- python=3.8

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
cuda-12.3.2                |                0           2 KB  nvidia
cuda-cccl-12.4.127         |                0         1.4 MB  nvidia
cuda-command-line-tools-12.4.1|                0           2 KB  nvidia
cuda-compiler-12.4.1       |                0           2 KB  nvidia
cuda-cudart-12.4.127       |                0         198 KB  nvidia
cuda-cudart-dev-12.4.127   |                0         413 KB  nvidia
cuda-cudart-static-12.4.127|                0         1.1 MB  nvidia
cuda-cuobjdump-12.4.127    |                0         302 KB  nvidia
cuda-cupti-12.4.127        |                0        16.4 MB  nvidia
cuda-cupti-static-12.4.127 |                0        11.3 MB  nvidia
cuda-cuxxfilt-12.4.127     |                0         296 KB  nvidia
cuda-demo-suite-12.4.127   |                0         5.0 MB  nvidia
cuda-documentation-12.4.127|                0          89 KB  nvidia
cuda-driver-dev-12.4.127   |                0          18 KB  nvidia
cuda-gdb-12.4.127          |                0         5.8 MB  nvidia
cuda-libraries-12.4.1      |                0           2 KB  nvidia
cuda-libraries-dev-12.4.1  |                0           2 KB  nvidia
cuda-libraries-static-12.4.1|                0           2 KB  nvidia
cuda-nsight-12.4.127       |                0       113.7 MB  nvidia
cuda-nsight-compute-12.4.1 |                0           2 KB  nvidia
cuda-nvcc-12.4.131         |                0        62.6 MB  nvidia
cuda-nvdisasm-12.4.127     |                0        47.9 MB  nvidia
cuda-nvml-dev-12.4.127     |                0         178 KB  nvidia
cuda-nvprof-12.4.127       |                0         4.7 MB  nvidia
cuda-nvprune-12.4.127      |                0          66 KB  nvidia
cuda-nvrtc-12.4.127        |                0        21.0 MB  nvidia
cuda-nvrtc-dev-12.4.127    |                0          12 KB  nvidia
cuda-nvrtc-static-12.4.127 |                0        21.9 MB  nvidia
cuda-nvtx-12.4.127         |                0          58 KB  nvidia
cuda-nvvp-12.4.127         |                0       114.5 MB  nvidia
cuda-opencl-12.4.127       |                0          12 KB  nvidia
cuda-opencl-dev-12.4.127   |                0          72 KB  nvidia
cuda-profiler-api-12.4.127 |                0          19 KB  nvidia
cuda-runtime-12.4.1        |                0           2 KB  nvidia
cuda-sanitizer-api-12.4.127|                0        17.1 MB  nvidia
cuda-toolkit-12.4.1        |                0           2 KB  nvidia
cuda-tools-12.4.1          |                0           2 KB  nvidia
cuda-visual-tools-12.4.1   |                0           2 KB  nvidia
gds-tools-1.9.1.3          |                0        40.7 MB  nvidia
libcublas-12.4.5.8         |                0       309.2 MB  nvidia
libcublas-dev-12.4.5.8     |                0          75 KB  nvidia
libcublas-static-12.4.5.8  |                0       350.9 MB  nvidia
libcufft-11.2.1.3          |                0       190.5 MB  nvidia
libcufft-dev-11.2.1.3      |                0          14 KB  nvidia
libcufft-static-11.2.1.3   |                0       383.8 MB  nvidia
libcufile-1.9.1.3          |                0         1.0 MB  nvidia
libcufile-dev-1.9.1.3      |                0          15 KB  nvidia
libcufile-static-1.9.1.3   |                0         3.6 MB  nvidia
libcurand-10.3.5.147       |                0        51.8 MB  nvidia
libcurand-dev-10.3.5.147   |                0         450 KB  nvidia
libcurand-static-10.3.5.147|                0        52.0 MB  nvidia
libcusolver-11.6.1.9       |                0       114.0 MB  nvidia
libcusolver-dev-11.6.1.9   |                0          49 KB  nvidia
libcusolver-static-11.6.1.9|                0        75.9 MB  nvidia
libcusparse-12.3.1.170     |                0       179.6 MB  nvidia
libcusparse-dev-12.3.1.170 |                0       178.2 MB  nvidia
libcusparse-static-12.3.1.170|                0       184.8 MB  nvidia
libnpp-12.2.5.30           |                0       142.8 MB  nvidia
libnpp-dev-12.2.5.30       |                0         539 KB  nvidia
libnpp-static-12.2.5.30    |                0       139.2 MB  nvidia
libnvfatbin-12.4.127       |                0         856 KB  nvidia
libnvfatbin-dev-12.4.127   |                0         685 KB  nvidia
libnvjitlink-12.4.127      |                0        18.2 MB  nvidia
libnvjitlink-dev-12.4.127  |                0        18.1 MB  nvidia
libnvjpeg-12.3.1.117       |                0         3.0 MB  nvidia
libnvjpeg-dev-12.3.1.117   |                0          13 KB  nvidia
libnvjpeg-static-12.3.1.117|                0         2.7 MB  nvidia
nsight-compute-2024.1.1.4  |                0       667.1 MB  nvidia
------------------------------------------------------------
                                       Total:        3.47 GB

The following NEW packages will be INSTALLED:

_libgcc_mutex anaconda/pkgs/main/linux-64::_libgcc_mutex-0.1-main
_openmp_mutex anaconda/pkgs/main/linux-64::_openmp_mutex-5.1-1_gnu
ca-certificates anaconda/pkgs/main/linux-64::ca-certificates-2024.3.11-h06a4308_0
cuda nvidia/linux-64::cuda-12.3.2-0
cuda-cccl nvidia/linux-64::cuda-cccl-12.4.127-0
cuda-command-line~ nvidia/linux-64::cuda-command-line-tools-12.4.1-0
cuda-compiler nvidia/linux-64::cuda-compiler-12.4.1-0
cuda-cudart nvidia/linux-64::cuda-cudart-12.4.127-0
cuda-cudart-dev nvidia/linux-64::cuda-cudart-dev-12.4.127-0
cuda-cudart-static nvidia/linux-64::cuda-cudart-static-12.4.127-0
cuda-cuobjdump nvidia/linux-64::cuda-cuobjdump-12.4.127-0
cuda-cupti nvidia/linux-64::cuda-cupti-12.4.127-0
cuda-cupti-static nvidia/linux-64::cuda-cupti-static-12.4.127-0
cuda-cuxxfilt nvidia/linux-64::cuda-cuxxfilt-12.4.127-0
cuda-demo-suite nvidia/linux-64::cuda-demo-suite-12.4.127-0
cuda-documentation nvidia/linux-64::cuda-documentation-12.4.127-0
cuda-driver-dev nvidia/linux-64::cuda-driver-dev-12.4.127-0
cuda-gdb nvidia/linux-64::cuda-gdb-12.4.127-0
cuda-libraries nvidia/linux-64::cuda-libraries-12.4.1-0
cuda-libraries-dev nvidia/linux-64::cuda-libraries-dev-12.4.1-0
cuda-libraries-st~ nvidia/linux-64::cuda-libraries-static-12.4.1-0
cuda-nsight nvidia/linux-64::cuda-nsight-12.4.127-0
cuda-nsight-compu~ nvidia/linux-64::cuda-nsight-compute-12.4.1-0
cuda-nvcc nvidia/linux-64::cuda-nvcc-12.4.131-0
cuda-nvdisasm nvidia/linux-64::cuda-nvdisasm-12.4.127-0
cuda-nvml-dev nvidia/linux-64::cuda-nvml-dev-12.4.127-0
cuda-nvprof nvidia/linux-64::cuda-nvprof-12.4.127-0
cuda-nvprune nvidia/linux-64::cuda-nvprune-12.4.127-0
cuda-nvrtc nvidia/linux-64::cuda-nvrtc-12.4.127-0
cuda-nvrtc-dev nvidia/linux-64::cuda-nvrtc-dev-12.4.127-0
cuda-nvrtc-static nvidia/linux-64::cuda-nvrtc-static-12.4.127-0
cuda-nvtx nvidia/linux-64::cuda-nvtx-12.4.127-0
cuda-nvvp nvidia/linux-64::cuda-nvvp-12.4.127-0
cuda-opencl nvidia/linux-64::cuda-opencl-12.4.127-0
cuda-opencl-dev nvidia/linux-64::cuda-opencl-dev-12.4.127-0
cuda-profiler-api nvidia/linux-64::cuda-profiler-api-12.4.127-0
cuda-runtime nvidia/linux-64::cuda-runtime-12.4.1-0
cuda-sanitizer-api nvidia/linux-64::cuda-sanitizer-api-12.4.127-0
cuda-toolkit nvidia/linux-64::cuda-toolkit-12.4.1-0
cuda-tools nvidia/linux-64::cuda-tools-12.4.1-0
cuda-visual-tools nvidia/linux-64::cuda-visual-tools-12.4.1-0
gds-tools nvidia/linux-64::gds-tools-1.9.1.3-0
ld_impl_linux-64 anaconda/pkgs/main/linux-64::ld_impl_linux-64-2.38-h1181459_1
libcublas nvidia/linux-64::libcublas-12.4.5.8-0
libcublas-dev nvidia/linux-64::libcublas-dev-12.4.5.8-0
libcublas-static nvidia/linux-64::libcublas-static-12.4.5.8-0
libcufft nvidia/linux-64::libcufft-11.2.1.3-0
libcufft-dev nvidia/linux-64::libcufft-dev-11.2.1.3-0
libcufft-static nvidia/linux-64::libcufft-static-11.2.1.3-0
libcufile nvidia/linux-64::libcufile-1.9.1.3-0
libcufile-dev nvidia/linux-64::libcufile-dev-1.9.1.3-0
libcufile-static nvidia/linux-64::libcufile-static-1.9.1.3-0
libcurand nvidia/linux-64::libcurand-10.3.5.147-0
libcurand-dev nvidia/linux-64::libcurand-dev-10.3.5.147-0
libcurand-static nvidia/linux-64::libcurand-static-10.3.5.147-0
libcusolver nvidia/linux-64::libcusolver-11.6.1.9-0
libcusolver-dev nvidia/linux-64::libcusolver-dev-11.6.1.9-0
libcusolver-static nvidia/linux-64::libcusolver-static-11.6.1.9-0
libcusparse nvidia/linux-64::libcusparse-12.3.1.170-0
libcusparse-dev nvidia/linux-64::libcusparse-dev-12.3.1.170-0
libcusparse-static nvidia/linux-64::libcusparse-static-12.3.1.170-0
libffi anaconda/pkgs/main/linux-64::libffi-3.4.4-h6a678d5_0
libgcc-ng anaconda/pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1
libgomp anaconda/pkgs/main/linux-64::libgomp-11.2.0-h1234567_1
libnpp nvidia/linux-64::libnpp-12.2.5.30-0
libnpp-dev nvidia/linux-64::libnpp-dev-12.2.5.30-0
libnpp-static nvidia/linux-64::libnpp-static-12.2.5.30-0
libnvfatbin nvidia/linux-64::libnvfatbin-12.4.127-0
libnvfatbin-dev nvidia/linux-64::libnvfatbin-dev-12.4.127-0
libnvjitlink nvidia/linux-64::libnvjitlink-12.4.127-0
libnvjitlink-dev nvidia/linux-64::libnvjitlink-dev-12.4.127-0
libnvjpeg nvidia/linux-64::libnvjpeg-12.3.1.117-0
libnvjpeg-dev nvidia/linux-64::libnvjpeg-dev-12.3.1.117-0
libnvjpeg-static nvidia/linux-64::libnvjpeg-static-12.3.1.117-0
libstdcxx-ng anaconda/pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1
ncurses anaconda/pkgs/main/linux-64::ncurses-6.4-h6a678d5_0
nsight-compute nvidia/linux-64::nsight-compute-2024.1.1.4-0
openssl anaconda/pkgs/main/linux-64::openssl-3.0.13-h7f8727e_0
pip anaconda/pkgs/main/linux-64::pip-23.3.1-py38h06a4308_0
python anaconda/pkgs/main/linux-64::python-3.8.19-h955ad1f_0
readline anaconda/pkgs/main/linux-64::readline-8.2-h5eee18b_0
setuptools anaconda/pkgs/main/linux-64::setuptools-68.2.2-py38h06a4308_0
sqlite anaconda/pkgs/main/linux-64::sqlite-3.41.2-h5eee18b_0
tk anaconda/pkgs/main/linux-64::tk-8.6.12-h1ccaba5_0
wheel anaconda/pkgs/main/linux-64::wheel-0.41.2-py38h06a4308_0
xz anaconda/pkgs/main/linux-64::xz-5.4.6-h5eee18b_0
zlib anaconda/pkgs/main/linux-64::zlib-1.2.13-h5eee18b_0

Proceed ([y]/n)? n

CondaSystemExit: Exiting.

@SkyLiu0

@ReedCao
Copy link
Author

ReedCao commented May 18, 2024

it seems this time moves on but new error met. @SkyLiu0

----------------------- cuPDLP-C ------------------------
reset release flags: -O2 -DNDEBUG
--------------------- cuPDLP CPU/GPU CONFIG -----------------------
-- Sets build with CUDA ON
Finding CUDA environment
- CUDA Home detected at /usr/local/cuda
- CUDA Libraries detected at /usr/local/cuda
- :/usr/local/cuda/lib64/libcudart.so;/usr/local/cuda/lib64/libcusparse.so;/usr/local/cuda/lib64/libcublas.so

  • GPU version PDLP
    --------------------- cuPDLP HiGHS CONFIG -----------------------
    Finding HiGHS environment
    • HiGHS Home detected at /usr/local/bin/highs
      CMake Error at FindHiGHSConf.cmake:15 (find_library):
      Could not find HiGHS_LIBRARY using the following names: highs
      Call Stack (most recent call first):
      interface/CMakeLists.txt:24 (include)

@SkyLiu0
Copy link
Collaborator

SkyLiu0 commented May 19, 2024

Our cuPDLP-C has been integrated in a more user-friendly way into the latest COPT https://www.shanshu.ai/copt with parameter LpMethod = 6 which has supported CUDA 12.4. You can easily get a free license for academic use😉. Currently, we recommend you try COPT, while we will develop cuPDLP-C to support CUDA 12.4 in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants