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

Build Error When Enabling GPU Support: Unsupported C Standard #1035

Open
ORCAaAaA-ui opened this issue May 9, 2024 · 2 comments
Open

Build Error When Enabling GPU Support: Unsupported C Standard #1035

ORCAaAaA-ui opened this issue May 9, 2024 · 2 comments
Labels
unconfirmed This report has not yet been confirmed by the developers

Comments

@ORCAaAaA-ui
Copy link

ORCAaAaA-ui commented May 9, 2024

Hello,

I'm trying to build xtb with GPU support on my system and have followed the instructions from the documentation (Building with GPU support). However, I've encountered an issue during the setup with Meson. Here are the steps I followed and the resulting error:

Command:

module load nvhpc
export FC=nvfortran CC=nvc
meson setup build_gpu --prefix=$HOME/.local -Dlapack=netlib -Dgpu=true -Dcusolver=true
Error: 

The Meson build system
Version: 1.4.0
Source dir: /home/jeon/sw/xtb
Build dir: /home/jeon/sw/xtb/build_gpu
Build type: native build
Project name: xtb
Project version: 6.7.0
Fortran compiler for the host machine: nvfortran (nvidia_hpc 24.3-0)
Fortran linker for the host machine: nvfortran pgi 24.3-0

meson.build:19:0: ERROR: None of values ['c11'] are supported by the C compiler. Possible values are ['none']

It seems that the Meson is unable to recognize 'c11' as a supported C standard for the nvc compiler I am using. Is there a way to bypass this issue, or is there a specific configuration that I need to apply for the nvc compiler to recognize the C standard?

Any guidance on how to resolve this would be greatly appreciated.

Thank you!

@ORCAaAaA-ui ORCAaAaA-ui added the unconfirmed This report has not yet been confirmed by the developers label May 9, 2024
@icamps
Copy link

icamps commented May 14, 2024

Having the same issue here.

@nielskm
Copy link

nielskm commented May 21, 2024

I believe this is a duplicate of #723. It is possible to fix the setup step using -Dc_std=none and various other flags, but the nvfortran compiler is still not able to build the json library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed This report has not yet been confirmed by the developers
Projects
None yet
Development

No branches or pull requests

3 participants