Skip to content

Commit

Permalink
When cuda is not available, the attributes `triton_kernel_call_lib.Tr…
Browse files Browse the repository at this point in the history
…itonKernel` and `triton.JITFunction` are missing. This creates issues when trying to import the code, e.g. using colab adhoc impoort.

Delaying the evaluation of these types fixes the problem.

PiperOrigin-RevId: 568330491
  • Loading branch information
The jax_triton Authors committed Sep 25, 2023
1 parent 170511d commit 06d3517
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jax_triton/triton_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
# limitations under the License.

"""Module for calling Triton kernels from JAX."""
# b/301982023
from __future__ import annotations

import functools
import os
import types
Expand Down

0 comments on commit 06d3517

Please sign in to comment.