Fix hipcc warning related to hipVersion (#1767)

* Fix hipcc warning related to hipVersion
* Rename hipVersion.h to hip_version.h
* Remove HIP_VERSION splitting
* Update .gitignore
- Ignore generated include/hip/hip_version.h
- Removed some stale entries
- Added executables from samples/1_Utils/*/ for consistency with bin/ entries.
Этот коммит содержится в:
Rahul Garg
2020-01-05 23:03:23 -08:00
коммит произвёл Maneesh Gupta
родитель af697eaefe
Коммит f3cafd5855
4 изменённых файлов: 6 добавлений и 8 удалений
+3 -3
Просмотреть файл
@@ -3,9 +3,6 @@
*.o
*.exe
*.swp
*.Po
hip-amdinternal
HIP-Examples
lib
packages
build
@@ -14,5 +11,8 @@ bin/hipBusBandwidth
bin/hipDispatchLatency
bin/hipify-clang
include/hip/hcc_detail/hip_prof_str.h
include/hip/hip_version.h
tags
samples/1_Utils/hipInfo/hipInfo
samples/1_Utils/hipBusBandwidth/hipBusBandwidth
samples/1_Utils/hipDispatchLatency/hipDispatchLatency
+2 -2
Просмотреть файл
@@ -343,7 +343,7 @@ endif()
# Generate .hipVersion
file(WRITE "${PROJECT_BINARY_DIR}/.hipVersion" ${_versionInfo})
# Generate hipVersion.h
# Generate hip_version.h
set(_versionInfoHeader
"// Auto-generated by cmake\n
#ifndef HIP_VERSION_H
@@ -354,7 +354,7 @@ set(_versionInfoHeader
#define HIP_VERSION (HIP_VERSION_MAJOR * 100 + HIP_VERSION_MINOR)\n
#endif\n
")
file(WRITE "${CMAKE_CURRENT_SOURCE_DIR}/include/hip/hipVersion.h" ${_versionInfoHeader})
file(WRITE "${CMAKE_CURRENT_SOURCE_DIR}/include/hip/hip_version.h" ${_versionInfoHeader})
# Build doxygen documentation
find_program(DOXYGEN_EXE doxygen)
-2
Просмотреть файл
@@ -119,8 +119,6 @@ sub delete_temp_dirs {
#HIP_PLATFORM controls whether to use NVCC or HCC for compilation:
$HIP_PLATFORM= `$HIP_PATH/bin/hipconfig --platform` // "hcc";
$HIP_VERSION= `$HIP_PATH/bin/hipconfig --version`;
($HIP_VERSION_MAJOR, $HIP_VERSION_MINOR, $HIP_VERSION_PATCH) = split(/\./, $HIP_VERSION);
my ($HIP_VERSION_GITDATE, $HIP_VERSION_GITHASH) = split(/-/, $HIP_VERSION_PATCH);
$HIP_COMPILER= $hipConfig{'HIP_COMPILER'};
$HIP_RUNTIME= $hipConfig{'HIP_RUNTIME'};
+1 -1
Просмотреть файл
@@ -49,7 +49,7 @@ THE SOFTWARE.
#include <thread>
#endif
#include <hip/hipVersion.h>
#include <hip/hip_version.h>
#include <hip/hip_common.h>
#if defined(__HIP_PLATFORM_HCC__) && !defined(__HIP_PLATFORM_NVCC__)