CHIP-SPV / chipStar

chipStar is a tool for compiling and running HIP/CUDA on SPIR-V via OpenCL or Level Zero APIs.
Other
157 stars 27 forks source link

Newer hipBLAS.h is not compatible with current `spirv_hip_complex.h` (C compatibility) #855

Closed pvelesko closed 1 month ago

pvelesko commented 1 month ago
E_VDIECVEI_C_E /home/pvelesko/libCEED/backends/memcheck/ceed-memcheck-restriction.c_s:_t169 a:st22ti:ac t iicnwarning:  liinnloop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning]lei 
nfe  l 169oh | ai tp  F hl io pa CtCrCeeoeamdlpPflr(eahxgi mphaFiSlpIoCMDo nfjofr( h(inp F=l o1a;t Cno m<p leelxe mz_)s i{ze
       -|  1                              ^;
 n++) {
      |                      ^
atComplex z) { return z.x; }
      |                                               ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:151:56: error: unknown type name 'hipFloatComplex'
  151 | __HOST_DEVICE__ static inline hipFloatComplex hipConjf(hipFloatComplex z) {
      |                                                        ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:152:18: error: expected ';' after expression
  152 |   hipFloatComplex ret;
      |                  ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:152:19: error: use of undeclared identifier 'ret'
  152 |   hipFloatComplex ret;
      |                   ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:141:47: error: unknown type name 'hipFloatComplex'
  141 | __HOST_DEVICE__
 static inline float hipC/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.hi:m153a:g3f:( hiperror: Flouse of undeclared identifier 'ret'at
Com  p153l | e x  rze)t .{x  r=e tzu.rxn; z
.      y| ;   ^}

      |                                               ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:154:3: error: use of undeclared identifier 'ret'
  154 |   ret.y = -z.y;
      |   ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:155:10: error: use of undeclared identifier 'ret'
  155 |   return ret;
      |          ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:143:31: error: unknown type name 'hipFloatComplex'
  143 | __HOST_DEVICE__ static inline hipFloatComplex make_hipFloatComplex(float a,
      |                               ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:145:18: error: expected ';' after expression
  145 |   hipFloatComplex z;
      |                  ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:145:19: error: use of undeclared identifier 'z'
  145 |   hipFloatComplex z;
      |                   ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:146:3: error: use of undeclared identifier 'z'
  146 |   z.x = a;
      |   ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:147:3: error: use of undeclared identifier 'z'
  147 |   z.y = b;
      | fatal error:   ^
too many errors emitted, stopping now [-ferror-limit=]
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:148:10: error: use of undeclared identifier 'z'
  148 |   return z;
      |          ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:151:31: error: unknown type name 'hipFloatComplex'
  151 | __HOST_DEVICE__ static inline hipFloatComplex hipConjf(hipFloatComplex z) {
      |                               ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:151:56: error: unknown type name 'hipFloatComplex'
  151 | __HOST_DEVICE__ static inline hipFloatComplex hipConjf(hipFloatComplex z) {
      |                                                        ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:152:18: error: expected ';' after expression
  152 |   hipFloatComplex ret;
      |                  ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:152:19: error: use of undeclared identifier 'ret'
  152 |   hipFloatComplex ret;
      |                   ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:153:3: error: use of undeclared identifier 'ret'
  153 |   ret.x = z.x;
      |   ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:154:3: error: use of undeclared identifier 'ret'
  154 |   ret.y = -z.y;
      |   ^
/home/pvelesko/install/HIP/chipStar/testing/include/hip/spirv_hip_complex.h:155:10: error: use of undeclared identifier 'ret'
  155 |   return ret;
      |          ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.