Merge pull request #152 from scchan/bump_hcc_version_check_32

Bump up HCC version for -hc-function-calls switch
Dieser Commit ist enthalten in:
Siu Chi Chan verfasst und GitHub committed 2019-11-13 10:45:40 -05:00
2 Ursprung 277c72a638 08ba92f1b0
Commit 453c735475
1 Datei geändert
+1 -1
+1 -1
Datei anzeigen
@@ -153,7 +153,7 @@ if("${HIP_COMPILER}" MATCHES "hcc")
execute_process(COMMAND bash "-c" "${hcc_executable} --version | sed -e '1!d' -e 's/.*based on HCC\\s*//'" OUTPUT_VARIABLE hcc_version_string)
execute_process(COMMAND bash "-c" "echo \"${hcc_version_string}\" | awk -F\".\" '{ printf $1}'" OUTPUT_VARIABLE hcc_major_version)
execute_process(COMMAND bash "-c" "echo \"${hcc_version_string}\" | awk -F\".\" '{ printf $2}'" OUTPUT_VARIABLE hcc_minor_version)
if ("${hcc_major_version}.${hcc_minor_version}" VERSION_LESS "2.11")
if ("${hcc_major_version}.${hcc_minor_version}" VERSION_LESS "3.2")
target_link_libraries(rccl PRIVATE -hc-function-calls)
endif()
endif()