We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498e81a commit c97d955Copy full SHA for c97d955
jaxlib/cuda/versions_helpers.cc
@@ -86,6 +86,7 @@ size_t CudnnGetVersion() {
86
}
87
int CudaComputeCapability(int device) {
88
int major, minor;
89
+ JAX_THROW_IF_ERROR(JAX_AS_STATUS(gpuInit(0)));
90
JAX_THROW_IF_ERROR(JAX_AS_STATUS(gpuDeviceGetAttribute(
91
&major, GPU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, device)));
92
@@ -102,4 +103,4 @@ int CudaDeviceCount() {
102
103
104
105
-} // namespace jax::cuda
106
+} // namespace jax::cuda
0 commit comments