Atomic运算符有对 atomicExch 和 atomicCAS 的支持吗

目前taichi支持了atomic_add,atomic_sub,atomic_and,atomic_or,atomic_max,atomic_min,atomic_xor,但似乎无法实现CUDA支持的atomicExch(Exchange)和atomicCAS(Compare and Swap)操作,请问有支持atomic_exch/atomic_cas的计划或替代的实现方法吗?

1 个赞

Hi @tmxklzp, 目前确实没有支持。未来是可以加进去的,你可以在Github上提一个ISSUE么?

1 个赞