From dbefef86eaa6e41edd0d09746aafd63e5bfac2bf Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 20 Mar 2017 18:24:01 -0400 Subject: [PATCH] P4 to Git Change 1388100 by smekhano@stas-mwamba-rocm on 2017/03/20 18:15:21 SWDEV-105835 - ROCm OpenCL: add -amdgpu-internalize-symbols to FE Reviewed by German Andreev Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#13 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#29 edit [ROCm/clr commit: a92d053618fe96028252c178b89061041f4a39eb] --- projects/clr/rocclr/runtime/device/pal/palcompiler.cpp | 3 +++ projects/clr/rocclr/runtime/device/rocm/roccompiler.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/projects/clr/rocclr/runtime/device/pal/palcompiler.cpp b/projects/clr/rocclr/runtime/device/pal/palcompiler.cpp index 83e3405df3..dca465e8c7 100644 --- a/projects/clr/rocclr/runtime/device/pal/palcompiler.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palcompiler.cpp @@ -272,6 +272,9 @@ LightningProgram::compileImpl( driverOptions.append(options->llvmOptions); driverOptions.append(hsailOptions(options)); + // Set whole program mode + driverOptions.append(" -mllvm -amdgpu-internalize-symbols"); + //Find the temp folder for the OS std::string tempFolder = amd::Os::getEnvironment("TEMP"); if (tempFolder.empty()) { diff --git a/projects/clr/rocclr/runtime/device/rocm/roccompiler.cpp b/projects/clr/rocclr/runtime/device/rocm/roccompiler.cpp index 3355657580..18a3197450 100644 --- a/projects/clr/rocclr/runtime/device/rocm/roccompiler.cpp +++ b/projects/clr/rocclr/runtime/device/rocm/roccompiler.cpp @@ -99,6 +99,9 @@ HSAILProgram::compileImpl_LC( driverOptions.append(options->llvmOptions); + // Set whole program mode + driverOptions.append(" -mllvm -amdgpu-internalize-symbols"); + driverOptions.append(preprocessorOptions(options)); //Find the temp folder for the OS