Repository navigation
musa: drop mp_21 from the default architectures - #30203
Conversation
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
|
Well, if we never build arch 21, how are we supposed to catch the issue in the future? |
|
In terms of complexity I would say this is worse than master so we should not merge it. |
How about I only leave the changes in ggml/src/ggml-cuda/fwht.cu line 215 to 219? |
My view is that MUSA support is very low priority and I am open to just removing it entirely. I'm willing to keep it around as long as the maintenance burden is negligible. The purpose of my comment in the previous thread was meant as a hint that this is something that I am weighing against MUSA support. |
The acceptable change to me in terms of reducing maintenance would be to just drop support for any devices with < 48 kB shared memory entirely. |
|
As of right now I think it is still okay to have to do this once for one kernel. But if this keeps happening I may reconsider. |
Thanks! Please allow me some time to do the updates/tests. |
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
ee6ede7 to
c55caef
Compare
|
Can we also have a warning if you try to build arch 21 so we don't get bugreports? |
Would a warning message in CMake work for you? |
Yes. |
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
Done. Please see the latest commit. |
* musa: drop mp_21 from the default architectures Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> * Address review comments Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> * Address review comments Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> --------- Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
* musa: drop mp_21 from the default architectures Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> * Address review comments Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> * Address review comments Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> --------- Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
* musa: drop mp_21 from the default architectures Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> * Address review comments Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> * Address review comments Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com> --------- Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
Overview
Follow-up to #30167.
mp_21caps static shared memory at 28 KB per block, which is the only one below CUDA's 48 KB per-block limit for static shared memory.So this PR changes the default
MUSA_ARCHITECTURESfrom21;22;31to22;31and limits the fallback from #30167 tomp_21on MUSA.Testing Done
On MTT S5000:
test-backend-ops -o MUL_MAT_HADAMARD: 32/32 on master and with this PR.test-backend-ops perf -o MUL_MAT_HADAMARD,m=8192, n=2048, median of 6 interleaved runs: 10680 us/run on master (fallback), 2391 us/run with this PR (FWHT kernel). The 1024 and 4096 cases are unchanged.Additional information
Requirements