From e1a140f43cb2f77336002d338cacf908a75073b1 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Tue, 2 Aug 2016 15:45:46 -0500 Subject: [PATCH] Added configuration file to be used by hipcc 1. CMake will create .hip-config file in bin directory Future Work: Need to make changes to hipcc to read the file Change-Id: Ia7dc48d43787921d5af4ab07d7a5befbcf904465 [ROCm/clr commit: 5971c64a7b3f4e75336ec13d97b89dab6a001aaf] --- projects/clr/hipamd/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/clr/hipamd/CMakeLists.txt b/projects/clr/hipamd/CMakeLists.txt index 71901da4a4..85e6ff1c21 100644 --- a/projects/clr/hipamd/CMakeLists.txt +++ b/projects/clr/hipamd/CMakeLists.txt @@ -36,6 +36,8 @@ if(HIP_PLATFORM STREQUAL "hcc") set(HCC_HOME $ENV{HCC_HOME} CACHE PATH "Path to which HCC has been installed") endif() endif() + message(STATUS ${HCC_HOME}) + file(WRITE "./bin/.hip-config" ${HCC_HOME}) if(IS_ABSOLUTE ${HCC_HOME} AND EXISTS ${HCC_HOME} AND IS_DIRECTORY ${HCC_HOME}) execute_process(COMMAND ${HCC_HOME}/bin/hcc --version COMMAND cut -d\ -f9