ROCm / clr

MIT License
85 stars 35 forks source link

[QA] error: use of undeclared identifier '__asm__' #59

Open qiji2023 opened 4 months ago

qiji2023 commented 4 months ago

Problem Description

I use inline asm in opencl code, but I get a error error: use of undeclared identifier '__asm__' on RX588 with driver 20.4.2

it is ok on RX6900xt, but the error will appear on RX 588

my code is like:

 __asm__ volatile("v_mad_u64_u32 %[t], null, %[aj], %[bi], 0;"      \
                           : [t] "=v"(tl[j])                                 \
                           : [aj] "v"(a->data[j]), [bi] "v"(b->data[i]));    \

Operating System

window10

CPU

amd R9

GPU

AMD Radeon VII

ROCm Version

ROCm 5.5.0

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

qiji2023 commented 4 months ago

@amd-aakash can you help me?