vosen / ZLUDA

CUDA on non-NVIDIA GPUs
https://vosen.github.io/ZLUDA/
Apache License 2.0
9.68k stars 631 forks source link

Nvidia FleX demo returns Cuda error: 2 #81

Open PvtNewb opened 9 months ago

PvtNewb commented 9 months ago

Hardware: RX Vega 7 (Cezanne) with driver 31.0.23013.5003, 4GB UMA allocated out of 32GB of memory. OS: Windows 11 build 22631 Software tested: Nvidia FleX PhysX demo

After launching with zluda.exe -- NvFlexDemoReleaseCUDA_x64.exe, the program would promptly launch for a bit, then crashes with Flex: Cuda error: 2 in cudaMallocHost(&ptr, elementCount*elementByteStride) - ..\..\cuda\util.cpp:477. image

vosen commented 9 months ago

Hmmm, do you have integrated gpu installed? If so see the section about it in the README

PvtNewb commented 9 months ago

Yes, I only have the Vega iGPU on my system, well I guess this is one of those GPU ops limitations.

DGdev91 commented 9 months ago

I can confirm it starts on a 7900xt on Windows. but then it gests some errors and the animation does not start. it's also pretty slow. But anyway, it's most likely because of your gpu.

Anyway, if someone wants to debug the error, it' this one. it appears 6 times. Flex: Cuda error: 71 in cudaGraphicsResourceSetMapFlags(res, cudaGraphicsMapFlagsWriteDiscard) - ../../cuda/flex.cu:4580