[llvm-bugs] [Bug 48153] New: Cannot compile OpenMP CUDA Offloading when using -fsave-optimization-record with Optimizations

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 11 09:38:03 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48153

            Bug ID: 48153
           Summary: Cannot compile OpenMP CUDA Offloading when using
                    -fsave-optimization-record with Optimizations
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: huberjn at ornl.gov
                CC: llvm-bugs at lists.llvm.org

The Clang compiler currently passes a debugging build to ptxas when
-fsave-optimization-record is specified. This causes ptxas to fail when
optimizations are enabled as well. This same behavior doesn't happen when using
'-g' or '-Rpass=<pass>' which also enable debugging information. This makes it
impossible to get an optimization report for most optimizations since they
require optimizations. I tested this using a new build of clang from master.

test.c:
int main() {
  return 0;
}

$> clang -O3 -fsave-optimization-record -fopenmp -fopenmp-targets=nvptx64
test.c

ptxas fatal   : Optimized debugging not supported
clang-12: error: ptxas command failed with exit code 255 (use -v to see
invocation)
clang version 12.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home2/3n4/clang/bin
clang-12: note: diagnostic msg: Error generating preprocessed source(s).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201111/b8b2aee4/attachment.html>


More information about the llvm-bugs mailing list