================
@@ -409,9 +409,11 @@ void HIP::constructGenerateObjFileFromHIPFatBinary(
ObjStream << "# *** Automatically generated by Clang ***\n";
if (FoundPrimaryGpuBinHandleSymbol) {
// Define the first gpubin handle symbol
- if (HostTriple.isWindowsMSVCEnvironment())
+ if (HostTriple.isWindowsMSVCEnvironment()) {
ObjStream << " .section .hip_gpubin_handle,\"dw\"\n";
- else {
+ } else if (HostTriple.isMacOSX()) {
+ ObjStream << " .section __HIP,__gpubin_handle\n";
----------------
jhuber6 wrote:
There's probably more places you need to adjust this, like the wrapper code.
But I don't know how your Toolchain or MacOS works intimately.
https://github.com/llvm/llvm-project/pull/183991
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits