m4rs-mt / ILGPU

ILGPU JIT Compiler for high-performance .Net GPU programs
http://www.ilgpu.net
Other
1.35k stars 116 forks source link

[BUG] Cuda 12 SDK not supported with ILGPU 1.5.X #1194

Closed m4rs-mt closed 4 months ago

m4rs-mt commented 5 months ago

Describe the bug

Our latest stable release does not support Cuda 12 SDK which causes issues with Blas in certain cases.

Environment

Steps to reproduce

Run any ILGPU program using CuBlas on a platform with Cuda 12.

Expected behavior

Cuda 12 should be supported by ILGPU v1.5.X.

Additional context

No response

MoFtZ commented 4 months ago

I have setup a Ubuntu 22.04 LTS VM, and installed Cuda SDK 12.4 Update 1.

In /usr/local/cuda/lib64, I found a symlink for libcublas.so.12, which is the correct naming that is used in ILGPU.Algorithms in ILGPU v.1.5.x.

We are also using [DefaultDllImportSearchPaths(DllImportSearchPath.LegacyBehavior)] on the Native Interop.

@m4rs-mt Can you provide more details on the issue with CuBlas?

Unfortunately, I do not have access to a Ubuntu machine with an Nvidia card, so am not able to test running on the GPU itself.

m4rs-mt commented 4 months ago

This issue has been resolved.