Package Details: opencl-nvidia-390xx 390.157-15

Git Clone URL: https://aur.archlinux.org/nvidia-390xx-utils.git (read-only, click to copy)
Package Base: nvidia-390xx-utils
Description: OpenCL implemention for NVIDIA
Upstream URL: https://www.nvidia.com/
Licenses: custom
Conflicts: opencl-nvidia
Provides: opencl-driver, opencl-nvidia
Submitter: svenstaro
Maintainer: jonathon (vnctdj)
Last Packager: vnctdj
Votes: 60
Popularity: 0.54
First Submitted: 2020-03-11 17:29 (UTC)
Last Updated: 2025-03-29 10:40 (UTC)

Dependencies (2)

Required by (66)

Sources (18)

Pinned Comments

vnctdj commented on 2025-01-24 07:37 (UTC)

Use this forum thread for discussion: https://bbs.archlinux.org/viewtopic.php?pid=1946926

jonathon commented on 2022-05-26 09:46 (UTC)

Please don't flag this package out-of-date unless a new version has been released by NVIDIA.

jonathon commented on 2021-12-26 22:44 (UTC) (edited on 2021-12-26 22:44 (UTC) by jonathon)

The DKMS package guidelines are explicit that linux-headers should not be a dependency of any DKMS package.

As a concrete example of why including that as a hard dependency is a bad idea, what happens when linux is not an installed kernel?

Latest Comments

1 2 3 4 5 6 .. 30 Next › Last »

bufferunderrun commented on 2025-05-04 17:25 (UTC)

No idea why kernel 6.15 is brought to this discussion when the issue is with GCC. GCC 15 switched over to C23 by default, so one needs to specify C17 ala https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-utils/-/blob/main/0002-CFLAGS-Set-std-gnu17-for-all-compilation-flags.patch

gcc-15.patch:

diff --git a/kernel/Kbuild b/kernel/Kbuild
index 85aa267..baa6986 100644
--- a/kernel/Kbuild
+++ b/kernel/Kbuild
@@ -61,6 +61,7 @@ $(foreach _module, $(NV_KERNEL_MODULES), \
 # $(EXTRA_CFLAGS) to ccflags-y for compatibility.
 #

+EXTRA_CFLAGS += -std=gnu17
 EXTRA_CFLAGS += -I$(src)/common/inc
 EXTRA_CFLAGS += -I$(src)
 EXTRA_CFLAGS += -Wall -MD $(DEFINES) $(INCLUDES) -Wsign-compare -Wno-cast-qual -Wno-error
diff --git a/kernel/conftest.sh b/kernel/conftest.sh
index 4da7588..1106ea5 100755
--- a/kernel/conftest.sh
+++ b/kernel/conftest.sh
@@ -151,7 +151,7 @@ test_headers() {
 }

 build_cflags() {
-    BASE_CFLAGS="-O2 -D__KERNEL__ \
+    BASE_CFLAGS="-std=gnu17 -O2 -D__KERNEL__ \
 -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
 -nostdinc -isystem $ISYSTEM \
 -Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-incompatible-pointer-types"

I'll let maintainers decide on the rest, gcc-14.patch and so on. I just applied it on top of everything.

seth commented on 2025-05-04 11:42 (UTC)

https://gist.github.com/joanbm/def2bf57ed7a799c1d84a67606459314 seems to hold patches for gcc15 and linux 6.15, the latter (involving vm_flags_reset) not be relevant to the currently used 6.14 kernel in the non-testin repos.

https://paste.opensuse.org/pastes/5e28f342c461 drops the contradictive "-Wsign-compare -Wnosign-compare", tried to just keep at least -Wnosign-compare ?

but they produce no working driver due to the issues noted above Not working like "how"? Does the module fail to load? Cause errors?

Is the gcc14 patch still applied? Do you have build logs?

vnctdj commented on 2025-05-03 22:28 (UTC)

I don't understand, JuliusTZM is speaking about GCC 15 and drankinatty is speaking about Linux 6.15 ?

drankinatty commented on 2025-05-02 08:51 (UTC)

I will need help with this patch. I've attempted to adapt the gcc-15 patch 470xx driver, but there were API changes between the 390 and 470 drivers where for instance vm_flags_reset(vma, vma->vm_flags & ~flags); doesn't exist at all in the 390 driver in nv-mm.h. Additionally, for the module naming strings, the file nvidia-uvm/uvm.c doesn't exist in the 390 driver either.

I have put the attempted gcc-15.patch (non-working) to see if anyone can begin there and make progress. The attempted patch applies fine and the new packages build and can be installed -- but they produce no working driver due to the issues noted above. This could be a fun one....

JuliusTZM commented on 2025-04-30 20:36 (UTC) (edited on 2025-04-30 20:36 (UTC) by JuliusTZM)

After upgrading to gcc15 the driver cannot be compiled, downgrading the linux, linux-headers, gcc, gcc-libs packages helps temporary.

drankinatty commented on 2025-04-04 07:35 (UTC) (edited on 2025-04-04 08:33 (UTC) by drankinatty)

That is odd, the download works fine, sorry for the confusion. What exactly did you "work around" that is allowing it to build fine? I've not had any issues yet.

ipaqmaster commented on 2025-04-03 22:48 (UTC) (edited on 2025-04-03 22:53 (UTC) by ipaqmaster)

My build script is hitting some circular dependency for nvidia-390xx-utils itself and recursing until the build job times out. Is this intended design in the depends= variables?

I've added a check to my build script to work around circular dependencies and it seems to be building just fine now.

vnctdj commented on 2025-03-29 10:42 (UTC)

6.14 patch is now included, thanks again for your early tests guys! :)

drankinatty commented on 2025-03-27 06:32 (UTC)

@air-g4p ... not like I've never done anything like that myself ...

air-g4p commented on 2025-03-26 09:55 (UTC)

@drankinatty - Thank you for taking the time to correctly identify my made in haste 'failure to apply' oversight.

Completely understood on the potential 390 and 470 Wayland issues.

The correctly edited PKGBUILD with the kernel-6.14.patch builds, installs and operates correctly against the 6.14-X linux and linux-zen kernels.

@vnctd - Given the above, please consider incorporating the 6.14 patch.

Cheers