gorgonia / cu

package cu provides an idiomatic interface to the CUDA Driver API.
Apache License 2.0
475 stars 64 forks source link

CUDA 12 support #65

Open maxekman opened 1 year ago

maxekman commented 1 year ago

First of all - nice package! :+1:

I would like to ask if anyone is working on updating this package to support CUDA 12?

neurlang commented 6 months ago

you can add:

require gorgonia.org/cu v0.9.5-0.20240520013750-498bd6b70d43

to your go.mod, cuda 12 should work

maxekman commented 6 months ago

Interesting! Thanks.

chewxy commented 6 months ago

https://github.com/gorgonia/cu/releases/tag/v0.9.5

hunjixin commented 5 months ago
# gorgonia.org/cu
..\..\go\pkg\mod\gorgonia.org\cu@v0.9.5\addressing.go:3:11: fatal error: cuda.h: No such file or directory
    3 | // #include <cuda.h>
      |           ^~~~~~~~
compilation terminated.
hunjixin commented 5 months ago

i think we should add cuda 12 support here

////WINDOWS:
//#cgo windows LDFLAGS:-LC:/cuda/v12.0/lib/x64 -LC:/cuda/v5.5/lib/x64 -LC:/cuda/v6.0/lib/x64 -LC:/cuda/v6.5/lib/x64 -LC:/cuda/v7.0/lib/x64 -LC:/cuda/v8.0/lib/x64 -LC:/cuda/v9.0/x64 -LC:/cuda/v11.8/lib/x64
//#cgo windows CFLAGS: -IC:/cuda/v12.0/include -IC:/cuda/v5.5/include -IC:/cuda/v6.0/include -IC:/cuda/v6.5/include -IC:/cuda/v7.0/include -IC:/cuda/v8.0/include -IC:/cuda/v9.0/include -IC:/cuda/v11.8/include