llvm icon indicating copy to clipboard operation
llvm copied to clipboard

[DPC++] code compilation error - Cannot select: t11: f64 = fpow t9, ConstantFP:f64<-1.666667e-01>

Open HarishCDev opened this issue 3 years ago • 2 comments
trafficstars

We are getting below error when we are trying to compile dpc++ code using clang++ compiler.

Error message:

fatal error: error in backend: Cannot select: t11: f64 = fpow t9, ConstantFP:f64<-1.666667e-01>
  t9: f64 = fma t8, t8, t6
    t8: f64,ch = CopyFromReg t0, Register:f64 %117
      t7: f64 = Register %117
    t8: f64,ch = CopyFromReg t0, Register:f64 %117
      t7: f64 = Register %117
    t6: f64 = fmul t5, t5
      t5: f64,ch = CopyFromReg t0, Register:f64 %118
        t4: f64 = Register %118
      t5: f64,ch = CopyFromReg t0, Register:f64 %118
        t4: f64 = Register %118
  t10: f64 = ConstantFP<-1.666667e-01>
In function: _ZN4quda8IdEEvRNS_6_7_EELi3EEES3_
llvm-foreach:
clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation)    
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/compiler/build/bin
clang-15: note: diagnostic msg: Error generating pre-processed source(s) - no pre processable inputs.
make: *** [Makefile_all.dpct:1186: libquda.so] Error 1

HarishCDev avatar Aug 29 '22 10:08 HarishCDev

could you try sycl::pow(...) ?

zjin-lcf avatar Aug 31 '22 21:08 zjin-lcf

If what @zjin-lcf suggests doesn't help, would you be able to provide a reproducer?

steffenlarsen avatar Sep 02 '22 15:09 steffenlarsen

@HarishCDev, there were no reply from your side for a while, so I'm going to add a stale label here

AlexeySachkov avatar Oct 19 '22 15:10 AlexeySachkov

This issue was closed because it has been stalled for 30 days with no activity. Please, re-open if the issue still exists.

github-actions[bot] avatar Nov 19 '22 02:11 github-actions[bot]