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
Bu işleme şunda yer alıyor:
Aditya Atluri
2016-08-02 15:45:46 -05:00
ebeveyn f43d02027e
işleme 9c45d9eaed
+2
Dosyayı Görüntüle
@@ -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