You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either lurk-rs or one of its dependencies appear to be checking to see if you have the nvidia-cuda-toolkit installed locally and linking to it regardless of whether or not you use the cuda build feature.
This would possibly explain why I would notice the GPU firing even though I wasn't building with the CUDA feature flag.
I only noticed this because I'm linking to to Rust from Go via CGO and you need to set the CGO directives based on whether the rust binary is linking to cuda or not.... which is dependent on what you have installed on your system and not what build features you use. The workaround I'm using is a Go build tag where, if you have the nvidia-cuda-toolkit installed you use the build tag, if you don't you omit it.
I don't know if this is a bug but I wasn't really expecting that behavior.
The text was updated successfully, but these errors were encountered:
Either lurk-rs or one of its dependencies appear to be checking to see if you have the nvidia-cuda-toolkit installed locally and linking to it regardless of whether or not you use the cuda build feature.
This would possibly explain why I would notice the GPU firing even though I wasn't building with the CUDA feature flag.
I only noticed this because I'm linking to to Rust from Go via CGO and you need to set the CGO directives based on whether the rust binary is linking to cuda or not.... which is dependent on what you have installed on your system and not what build features you use. The workaround I'm using is a Go build tag where, if you have the nvidia-cuda-toolkit installed you use the build tag, if you don't you omit it.
I don't know if this is a bug but I wasn't really expecting that behavior.
The text was updated successfully, but these errors were encountered: