jax-ml / jax-triton

jax-triton contains integrations between JAX and OpenAI Triton
Apache License 2.0
340 stars 36 forks source link

When cuda is not available, the attributes `triton_kernel_call_lib.TritonKernel` and `triton.JITFunction` are missing. This creates issues when trying to import the code, e.g. using colab adhoc impoort. #231

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

When cuda is not available, the attributes triton_kernel_call_lib.TritonKernel 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.

google-cla[bot] commented 1 year ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.