fynv / ThrustRTC

CUDA tool set for non-C++ languages that provides similar functionality like Thrust, with NVRTC at its core.
Other
59 stars 6 forks source link

Raise "NVRTC version too high for GPU (compute_7)" on RTX2060 when "Sort_By_Key" #25

Open LCM1999 opened 2 years ago

LCM1999 commented 2 years ago

My code: image Error happens in "trtc.Sort_By_Key" Std::out: image My GPU information: RTX 2060 12GB; CUDA version: 11.6.124; Compute Capability: (7, 5): 64 My ThrustRTC version: 0.3.19

What other information should I provide? Thanks for you help.

LCM1999 commented 2 years ago

I found this could happen when I use both ThrustRTC and PyCuda. In my code, 'Hash List' and 'Index List' are computed by pyCuda, and when I use ThrustRTC to sort them, I got this error. But if I only use ThrustRTC to sort same arrays, it works well. So i wonder if there is some conflict between ThrustRTC and pyCuda?

fynv commented 2 years ago

Sorry for late reply. This was a bug.

ThrustRTC simply calculated an incorrect compute capability when CUDA is initialized by a different library. (should be compute_75 instead of compute_7)

I fixed this just now in version 0.3.20.