llvm icon indicating copy to clipboard operation
llvm copied to clipboard

[SYCL][CUDA] Allow joint_matrix to be loaded from const T

Open JackAKirk opened this issue 3 years ago • 5 comments

Fixes a bug where if joint_matrix_load attempts to load joint_matrix from an array of const Tincorrect behaviour will occur or an error will be thrown. To fix this we make use of std::remove_const_t<T> in appropriate places. This is important functionality for integrating joint_matrix with existing SYCL-DNN routines. I think that similar problems might occur in the intel backends for their existing impl: I have not made corresponding changes because I do not have the hardware to test it.

Signed-off-by: JackAKirk [email protected]

JackAKirk avatar Aug 05 '22 12:08 JackAKirk

btw the CUDA test failure is the now XFAIL'ed known flaky test Assert/assert_in_simultaneously_multiple_tus.cpp

JackAKirk avatar Sep 16 '22 09:09 JackAKirk

ping @v-klochkov

JackAKirk avatar Sep 16 '22 10:09 JackAKirk

/verify with https://github.com/intel/llvm-test-suite/pull/1280

JackAKirk avatar Sep 20 '22 19:09 JackAKirk

/verify with https://github.com/intel/llvm-test-suite/pull/1280

JackAKirk avatar Sep 21 '22 09:09 JackAKirk

Looks good to me. Thank you. Before proceeding to merge. Please add a test verifying the test case being fixed by this PR.

If there is an existing test, but it is XFAIL due to being flaky, please add a simpler test or a compile-only test.

Thanks. I've added all new possible use cases in the test here: https://github.com/intel/llvm-test-suite/pull/1280

JackAKirk avatar Sep 21 '22 15:09 JackAKirk

/verify with https://github.com/intel/llvm-test-suite/pull/1280

pvchupin avatar Sep 29 '22 20:09 pvchupin

Can this be merge now?

JackAKirk avatar Oct 05 '22 14:10 JackAKirk