intel / intel-xpu-backend-for-triton

OpenAI Triton backend for Intel® GPUs
MIT License
142 stars 43 forks source link

Undefined function is_integer_type is used in definition of min/max functions #580

Closed gshimansky closed 7 months ago

gshimansky commented 8 months ago

Here are two calls to is_integer_type:

  1. https://github.com/intel/intel-xpu-backend-for-triton/blob/llvm-target/python/triton/language/standard.py#L196
  2. https://github.com/intel/intel-xpu-backend-for-triton/blob/llvm-target/python/triton/language/standard.py#L248

Normally this call is ignored because it is used inside of assert operator that is ignored by default. But when TRITON_DEBUG=1 is used or assertions are enabled in another way, these statements are actually compiled and is_integer_type cannot be found.

prathams417 commented 7 months ago

Issue also existed on OpenAI/triton. Has been resolved now and waiting on merge in OpenAI/triton https://github.com/openai/triton/pull/3358