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

configure failed to locate cudart lib #1101

Open
ewtang opened this issue Jan 15, 2025 · 4 comments
Open

configure failed to locate cudart lib #1101

ewtang opened this issue Jan 15, 2025 · 4 comments
Labels

Comments

@ewtang
Copy link

ewtang commented Jan 15, 2025

Describe the bug
A clear and concise description of what the bug is.
Run "configure --enable-cuda" got "configure: error: cannot find cuda runtime libraries in /usr/local/cuda-12.6/lib /usr/local/cuda-12.6/lib64:

To Reproduce
Steps to reproduce the behavior:
Run "configure --enable-cuda"

Expected behavior
A clear and concise description of what you expected to happen.
Should be able to locate cudart lib without error.

Logs
If applicable, add logfiles to help explain your problem.
config.log

Environment (please complete the following information):

  • OS and version: Fedora 41
  • Compiler: gcc 14.2.1
  • amuse-2024.6.0

Additional context
Add any other context about the problem here.
Machine with CUDA TK installed.

@ewtang ewtang added the bug label Jan 15, 2025
@LourensVeen
Copy link
Collaborator

Hi, thank you for reporting this! We're aware of this issue, the CUDA detection logic was written more than a decade ago, and things have changed since then. I'm working on a new build system with an updated CUDA detection macro that should fix this, which will be released soon.

Unfortunately, most of the CUDA-enabled codes use an older CUDA API that no longer exists, so they will still be broken. ph4 should work in the new release.

I have two questions that will help me help you:

  • Which of the CUDA-enabled codes would you like to use?
  • How did you install CUDA on this machine?

@ewtang
Copy link
Author

ewtang commented Jan 17, 2025

Hi,

  • Which of the CUDA-enabled codes would you like to use?
    I am interested in star cluster but have the faintest idea.

  • How did you install CUDA on this machine?
    My laptop has a legacy GPU so I installed the following rpmfusion packages:
    xorg-x11-drv-nvidia-390xx
    akmod-nvidia-390xx
    xorg-x11-drv-nvidia-390xx-cuda

Then I installed the Nvidia CUDA tool kit for Fedora 39.

Thanks.

@LourensVeen
Copy link
Collaborator

Okay, I've had a look at the nVidia CUDA packages for Fedora 39 and how they install it, and I think that'll work fine with the new release when it comes out.

I'm a software engineer, not an astrophysicist, so I'm going to refer you to the AMUSE book (you can download it for free from there) for choosing an appropriate n-body code for star clusters, it has a whole section on them that also explains all the different codes and how they work.

As I mentioned ph4 should work in the new release, and Huayno's OpenCL mode should work with CUDA as well actually, and I'll take this as a request to get Bonsai running again, which we need to do anyway, in case you want to make some really big star clusters.

@ewtang
Copy link
Author

ewtang commented Jan 17, 2025

I look forward to the forthcoming release. In the meantime, let me check out the AMUSE book.

Thanks again.

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

No branches or pull requests

2 participants