MrSidims wrote:
this is the bare minimum (may be even way too shorten):
```
clang --offload-new-driver --offload-arch=amdgcnspirv --offload-arch=gfx1201 -x
hip test.hip -o test
llvm-link: /tmp/test-6dd5aa-spirv64-amd-amdhsa-amdgcnspirv-0c90a8-62ea38.o:1:1:
error: expected top-level entity
#'
=
llvm-link: error: loading file
'/tmp/test-6dd5aa-spirv64-amd-amdhsa-amdgcnspirv-0c90a8-62ea38.o'
clang: error: amdgcn-link command failed with exit code 1 (use -v to see
invocation)
clang-linker-wrapper: error: 'clang' failed
clang: error: amdgcn-link command failed with exit code 1 (use -v to see
invocation)
cat test.hip
int main(){}
```
https://github.com/llvm/llvm-project/pull/202986
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits