Package Details: nvhpc 24.7-2

Git Clone URL: https://aur.archlinux.org/nvhpc.git (read-only, click to copy)
Package Base: nvhpc
Description: NVIDIA HPC SDK
Upstream URL: https://gitlab.com/badwaik/archlinux/aur/nvhpc
Keywords: compiler cuda fortran pgi portland
Licenses: custom
Conflicts: pgi-compilers
Replaces: pgi-compilers
Submitter: a.kudelin
Maintainer: jayesh
Last Packager: jayesh
Votes: 14
Popularity: 0.000058
First Submitted: 2020-10-20 12:54 (UTC)
Last Updated: 2024-08-23 11:06 (UTC)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

chazeon commented on 2024-08-23 02:48 (UTC)

Hi @jayesh, please checkout the following merge requests: https://gitlab.com/badwaik/archlinux/aur/nvhpc/-/merge_requests/3

lahwaacz commented on 2024-08-22 22:06 (UTC) (edited on 2024-08-22 22:07 (UTC) by lahwaacz)

@chazeon Not so much, running makelocalrc in package() is fine for me. Though I would still use sed or patch if I was the maintainer.

jayesh commented on 2024-08-22 19:55 (UTC) (edited on 2024-08-22 19:55 (UTC) by jayesh)

@chazeon :thanks for working on it and figuring out the bug.

you can send me a merge request in https://gitlab.com/badwaik/archlinux/aur/nvhpc if you wish..I might only be able to look at it in around 12 hours .

chazeon commented on 2024-08-22 19:52 (UTC)

Hi @lahwaacz, would you be objecting to running makelocalrc in the package() stage?

lahwaacz commented on 2024-08-22 19:14 (UTC) (edited on 2024-08-22 19:14 (UTC) by lahwaacz)

Please don't run makelocalrc from post_install() nor from the PKGBUILD, it may contain other stuff that would change the user's environment in a way not suitable for Arch. The correct localrc should be found and assembled in package() as it is now.

chazeon commented on 2024-08-22 17:00 (UTC) (edited on 2024-08-22 17:05 (UTC) by chazeon)

OK, I understand, the issue is with the $pkgdir/opt/nvidia/hpc_sdk/Linux_x86_64/$pkgver/compilers/bin/localrc file. It seems that GCCVERSION needs to be a numerical number now.

I suggest do not do sed anymore, it is too fragile, you can directly generate this localrc file using the command makelocalrc. Say you want gcc-13, you can do:

source /opt/nvidia/nvhpc.sh
makelocalrc -x -gcc gcc-13

and you can specify the output directory using the -d option. If you already installed the package, run the above commands using root will fix the issue.

A comparison between the regenerated localrc and the one installed with the attached PKGBUILD:

% diff localrc /opt/nvidia/hpc_sdk/Linux_x86_64/24.7/compilers/bin/localrc
17,18c17
< set GCCVERSION=130300;
< set GCCNAME=gcc-13;
---
> set GCCVERSION=13.3.0;
21c20
< # makelocalrc executed by chazeon Thu Aug 22 12:49:51 EDT 2024
---
> # makelocalrc executed by chazeon Mon Aug 12 16:09:25 EDT 2024

I don't know how to make a pull request now, if I can figure it out I might try to submit a request to use the makelocalrc command directly.

chazeon commented on 2024-08-22 16:40 (UTC)

I am having some issues with compilers in the 24.7 version, only nvcc works, nvc, nvc++, nvfortran all gives something like this:

$ nvc --version
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), missing right parenthesis
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), extra text: ....

nvc 24.7-0 64-bit target on x86-64 Linux -tp alderlake 
NVIDIA Compilers and Tools
Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES.  All rights reserved.

$ nvc hello.c 
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), missing right parenthesis
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), extra text: ....
nvc-Warning-Malformed $expr(), extra text: ....
Command-line error: invalid number: 13.3.0

1 catastrophic error detected in this compilation.
Compilation terminated.

jayesh commented on 2024-07-19 05:47 (UTC)

nvhpc.sh has now been shifted to /opt/nvidia/nvhpc.sh and hence is not loaded by default.

jayesh commented on 2024-07-11 09:41 (UTC) (edited on 2024-07-11 09:42 (UTC) by jayesh)

Yes. I have a plan to shift the nvhpc.sh to a custom location so that it is not read by default. I will push the change along with the new 24.5 change as well which should be done by today evening.