umar456 · GitHub

umar456

requested changes Oct 26, 2020

@jacobkahn

@jacobkahn

@umar456

The cast optimization removes the previous node in the AST but doesn't update
the returned Array's ready flag in case it is being replaced by a buffer. This
caused an error in the CUDA backend under certain scenarios.
Added additional tests and logging for testing and debugging

@umar456

@umar456

@umar456

@umar456

@jacobkahn

umar456 pushed a commit to umar456/arrayfire that referenced this pull request

Apr 21, 2022
…3031)
Adds a JIT optimization which removes sequential casts in cases that don't
result in a differently-typed result.
This commit removes the following casts:
* Casts for conversions between any floating point types.
* Casts from smaller integer types to larger integer type and back
Following casts are NOT removed
* Floating point to integer types and back
* Integer types from larger types to smaller types and back
Casts can be forced by calling eval on the casted intermediate array

umar456 pushed a commit that referenced this pull request

Apr 22, 2022
Adds a JIT optimization which removes sequential casts in cases that don't
result in a differently-typed result.
This commit removes the following casts:
* Casts for conversions between any floating point types.
* Casts from smaller integer types to larger integer type and back
Following casts are NOT removed
* Floating point to integer types and back
* Integer types from larger types to smaller types and back
Casts can be forced by calling eval on the casted intermediate array

Read the original on github.com ↗