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

Issue building #10

Closed
hnisonoff opened this issue Sep 2, 2022 · 5 comments
Closed

Issue building #10

hnisonoff opened this issue Sep 2, 2022 · 5 comments

Comments

@hnisonoff
Copy link

Hi! I am very interested in using your solver!

I am running into the following error:
fatal error: cub/detail/device_synchronize.cuh: No such file or directory 36 | #include <cub/detail/device_synchronize.cuh>

I am using CUDA 11.4

It looks like I don't have any cub/detail/ directory:

ls -l /usr/local/cuda-11.4/include/cub/
total 212
drwxr-xr-x 2 root root  4096 Jul  1 20:12 agent
drwxr-xr-x 3 root root  4096 Jul  1 20:12 block
drwxr-xr-x 2 root root  4096 Jul  1 20:12 cmake
-rw-r--r-- 1 root root  2000 Jul  1 20:12 config.cuh
-rw-r--r-- 1 root root  3750 Jul  1 20:12 cub.cuh
drwxr-xr-x 3 root root  4096 Jul  1 20:12 device
drwxr-xr-x 2 root root  4096 Jul  1 20:12 grid
drwxr-xr-x 2 root root  4096 Jul  1 20:12 host
drwxr-xr-x 2 root root  4096 Jul  1 20:12 iterator
drwxr-xr-x 2 root root  4096 Jul  1 20:12 thread
-rw-r--r-- 1 root root 29129 Jul  1 20:12 util_allocator.cuh
-rw-r--r-- 1 root root  6955 Jul  1 20:12 util_arch.cuh
-rw-r--r-- 1 root root  3652 Jul  1 20:12 util_compiler.cuh
-rw-r--r-- 1 root root  6333 Jul  1 20:12 util_cpp_dialect.cuh
-rw-r--r-- 1 root root  5763 Jul  1 20:12 util_debug.cuh
-rw-r--r-- 1 root root  2176 Jul  1 20:12 util_deprecated.cuh
-rw-r--r-- 1 root root 23022 Jul  1 20:12 util_device.cuh
-rw-r--r-- 1 root root  3710 Jul  1 20:12 util_macro.cuh
-rw-r--r-- 1 root root  2872 Jul  1 20:12 util_math.cuh
-rw-r--r-- 1 root root  2368 Jul  1 20:12 util_namespace.cuh
-rw-r--r-- 1 root root 22197 Jul  1 20:12 util_ptx.cuh
-rw-r--r-- 1 root root 40332 Jul  1 20:12 util_type.cuh
-rw-r--r-- 1 root root  3114 Jul  1 20:12 version.cuh
drwxr-xr-x 3 root root  4096 Jul  1 20:12 warp

Do you have any advice on how to proceed? I am unable to install different CUDA versions on this machine. Thanks!

@pawelswoboda
Copy link
Contributor

Have you followed the instructions to install the solver, in particular have you exactly typed git submodule update --remote --recursive --init? Please try this out on a fresh checkout of the repo.

@hnisonoff
Copy link
Author

When I run that command in a new checkout I get the following:

 git submodule update --remote --recursive --init
Submodule 'external/CLI11' (https://github.com/CLIUtils/CLI11.git) registered for path 'external/CLI11'
Submodule 'external/Eigen' (https://gitlab.com/libeigen/eigen.git) registered for path 'external/Eigen'
Submodule 'external/LBDD' (https://github.com/pawelswoboda/LBDD.git) registered for path 'external/LBDD'
Submodule 'external/PEGTL' (https://github.com/taocpp/PEGTL.git) registered for path 'external/PEGTL'
Submodule 'external/cereal' (https://github.com/USCiLab/cereal.git) registered for path 'external/cereal'
Submodule 'external/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'external/pybind11'
Submodule 'external/thrust' (https://github.com/NVIDIA/thrust.git) registered for path 'external/thrust'
Submodule 'external/tsl-robin-map' (https://github.com/Tessil/robin-map.git) registered for path 'external/tsl-robin-map'
Submodule 'external/vectorclass' (https://github.com/vectorclass/version2.git) registered for path 'external/vectorclass'
Cloning into '/storage/hunter_nisonoff/projects/recombination/ilp/BDD/external/CLI11'...
Cloning into '/storage/hunter_nisonoff/projects/recombination/ilp/BDD/external/Eigen'...
Cloning into '/storage/hunter_nisonoff/projects/recombination/ilp/BDD/external/LBDD'...
Cloning into '/storage/hunter_nisonoff/projects/recombination/ilp/BDD/external/PEGTL'...
Cloning into '/storage/hunter_nisonoff/projects/recombination/ilp/BDD/external/cereal'...
Cloning into '/storage/hunter_nisonoff/projects/recombination/ilp/BDD/external/pybind11'...
Cloning into '/storage/hunter_nisonoff/projects/recombination/ilp/BDD/external/thrust'...
Cloning into '/storage/hunter_nisonoff/projects/recombination/ilp/BDD/external/tsl-robin-map'...
Cloning into '/storage/hunter_nisonoff/projects/recombination/ilp/BDD/external/vectorclass'...
fatal: Needed a single revision
Unable to find current origin/master revision in submodule path 'external/CLI11'

All of the directories in external are also empty.

@hnisonoff
Copy link
Author

It looks like part of the reason the command failed is because the .gitmodule file had to be edited to point to the "main" branch rather than the default "master" which doesn't exist for some repos. I was still unable to make progress though.

@paul0noah
Copy link

paul0noah commented Mar 23, 2023

In issue #13 (#13) i describe how you can solve it. Basically you need to

  1. navigate with terminal to <bdd_root>/external/thrust/dependencies/cub/
  2. Inside the folder of step 1) do $ git checkout main and git pull
  3. try building the project once again :)

I think the error is exactly what you describe and might come from that "cub" project switched branch names from master to main.

Whenever you will re-invoke in <bdd_root> the command git submodule update --remote --recursive --init you'll likely have to follow my "solution" again :)

@aabbas90
Copy link
Collaborator

Thanks to @paul0noah the issue should now be fixed. Please reopen if it is not.

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

4 participants