| Issue |
71355
|
| Summary |
[clang][offload] Different optimization level for compiling host code and offload target code
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
littlewu2508
|
Currently when I tried to compile a hip program, `clang` accepts one optimization level `-O<N>` and use it in both compiling CPU code and GPU code. Is there any reason to use the same optimization level, or it can be set differently?
X problem: Linux distro commonly used `-O2` flags (for CPU, apparently), while for GPGPU programs `-O3` is more widely adopted. See https://github.com/gentoo/gentoo/pull/33400#discussion_r1377792830
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs