The position of if-else
significantly affect performance, which is unexpected.
#6491
Labels
if-else
significantly affect performance, which is unexpected.
#6491
Describe the issue
Hi, I'm here again. This time, I bring a very counter intuitive problem.
That is, why putting if-else condition inside a loop is way more faster (~10x) than putting is outside a loop?
Below are my two versions of code:
if-else outside loop
if-else inside loop
Considering the redundant computation in the inside version, it should be slower if we use any other programming language, but this is not how Triton works.
Do you have some ideas? Appreciate it!☺️ ☺️
Environment details
Triton: 3.1.0
GPU: A100
The text was updated successfully, but these errors were encountered: