-
Notifications
You must be signed in to change notification settings - Fork 69
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
Compilation error (observed from pasta-msm) #32
Comments
Hmmm... Is it actually so that nvcc is the only new component? I mean I'm using 12.3 and it's perfectly all right. Well, I don't have gcc 13, and it seems that it's gcc 13 that is the culprit... |
Moreover, if I put together gcc 13.2.0 and nvcc 12.3 it says |
My indication about updating nvcc 12.1 -> 12.3 was just for context, it's indeed not the only moving piece. Here's the output of
That of That later one is versioned thus:
Those warnings are indeed different from the gcc ouput. |
Incidentally clang++ warnings were spotted today, as result of introduction of the .github/workflows/ci.yml that exercises both c++ and clang++. They will be resolved at a later point. But how do I reproduce the problem with gcc? Well, we're likely to pull the "unsupported" card on the basis of the |
I'm running on Archlinux, which installation of CUDA indeed removes this warning: With that said, despite NVIDIA being extra cautious, this has worked for about a year: https://gitlab.archlinux.org/archlinux/packaging/packages/cuda/-/commit/5c0d3a90e04541f8ab011b616c3f29b01c8af74b On the other hand, could it be that replacing: Lines 146 to 148 in 8ae27a6
with: std::unique_lock<std::mutex> lock(mtx);
std::function<void()> func = work;
fifo.emplace_back(std::move(func));
cvar.notify_one(); // wake up a worker thread Would suffice to lift the ambiguity? |
Well, then it's Archlinux's responsibility, isn't it? :-) But on a serious note, you have to agree that it's not really reasonable to expect |
Archlinux cuda depends on gcc12 https://archlinux.org/packages/extra/x86_64/cuda/ Therefore |
Right, this is what "pulling the "unsupported" card" means. I mean "don't use unsupported compiler" is logically equivalent to "use a supported one instead." BTW, setting CXX alone is sufficient. On a related note, formally speaking setting CXX to a version other than system default is not actually a guarantee for success. The trouble is that rustc will call |
Latest nvcc works with gcc up to 13.x and clang up 17.x. |
TL;DR: compilation error on a
cargo check
I upgraded nvcc to 12.3 according to the hints in supranational/pasta-msm@8ccdc45 and got a compilation error on a simple
cargo check
:The warnings are several instances of the following warning :
Full output below.
Details
Version info
The text was updated successfully, but these errors were encountered: