Skip to content

Commit eba18a5

Browse files
committed
Merge branch 'develop' of github.com:ROCm/hipFile into rildixon/io-retry-compat
2 parents 341c81c + 17827d4 commit eba18a5

6 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/build-ais-nvidia.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ jobs:
8484
-DCMAKE_CXX_COMPILER="${_AIS_INPUT_CXX_COMPILER}" \
8585
-DCMAKE_CXX_FLAGS="-Werror" \
8686
-DCMAKE_HIP_PLATFORM=nvidia \
87-
-DAIS_BUILD_DOCS=ON \
8887
..
8988
'
9089
- name: Build hipFile for the NVIDIA platform (${{ matrix.supported_compilers }})
@@ -114,4 +113,4 @@ jobs:
114113
# uses: ./.github/workflows/hipfile-nvidia.yml
115114
# needs: build_AIS_image
116115
# with:
117-
# platform: ${AIS_INPUT_PLATFORM}
116+
# platform: ${AIS_INPUT_PLATFORM}

.github/workflows/build-ais.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ jobs:
140140
export CPACK_DEBIAN_PACKAGE_RELEASE="${JOB_DESIGNATOR}${SLES_BUILD_ID_PREFIX}${BUILD_ID}~$(source /etc/os-release && echo ${VERSION_ID})"
141141
export CPACK_RPM_PACKAGE_RELEASE="${JOB_DESIGNATOR}${SLES_BUILD_ID_PREFIX}${BUILD_ID}"
142142
cmake \
143+
-DCMAKE_BUILD_TYPE=Debug \
143144
-DCMAKE_CXX_COMPILER="${_AIS_INPUT_CXX_COMPILER}" \
144145
-DCMAKE_CXX_FLAGS="-Werror" \
145146
-DCMAKE_HIP_ARCHITECTURES="${{ env.AIS_HIP_ARCHITECTURES }}" \

.github/workflows/hipfile-nvidia.yml.disabled

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ jobs:
7474
-DCMAKE_CXX_COMPILER=g++ \
7575
-DCMAKE_CXX_FLAGS="-Werror" \
7676
-DCMAKE_HIP_PLATFORM=nvidia \
77-
-DAIS_BUILD_DOCS=ON \
7877
-DAIS_CAPABLE_DIR=\"${ROCTMPDIR}\" \
7978
..
8079
"

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* `AIS_USE_SANITIZERS` now also enables the following sanitizers: integer, float-divide-by-zero, local-bounds, vptr, nullability (in addition to address, leak, and undefined). Sanitizers should also now emit usable stack trace info.
1515
* The AIS optimized IO path will automatically fallback to the POSIX IO path if a failure occurs and the compatibility mode has not been disabled.
1616
* Added check in the Fastpath/AIS backend to ensure the HIP Runtime is initialized. This avoids causing a segfault in the HIP Runtime.
17+
* The default CMake build type was changed from `Debug` to `RelWithDebInfo`
1718

1819
### Removed
1920
* The rocFile library has been completely removed and the code is now a part of hipFile.

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
# CMake version according to latest ROCm platform requirements
88
cmake_minimum_required(VERSION 3.21)
99

10-
# Set the default build type to Debug
10+
# Set the default CMake build type
1111
#
1212
# NOTE: This has to be done BEFORE the project is declared!
1313
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
14-
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type")
14+
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Build type")
1515
endif()
1616

1717
# Set the library version in a variable so we can use

src/amd_detail/stats.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "stats.h"
99
#include "sys.h"
1010

11+
#include <cerrno>
1112
#include <fcntl.h>
1213
#include <poll.h>
1314
#include <unistd.h>
@@ -109,7 +110,8 @@ StatsServer::~StatsServer()
109110
{
110111
if (m_thread.joinable()) {
111112
uint64_t i{1};
112-
write(m_efd.get(), &i, sizeof(i));
113+
while (write(m_efd.get(), &i, sizeof(i)) == -1 && errno == EINTR) {
114+
}
113115
m_thread.join();
114116
}
115117
}
@@ -152,7 +154,7 @@ StatsServer::threadFn()
152154
sendFd(conn, m_fd.get());
153155
close(conn);
154156
}
155-
if (pfd[1].revents & POLLIN) {
157+
if (pfd[1].revents & (POLLIN | POLLERR | POLLNVAL)) {
156158
break;
157159
}
158160
}

0 commit comments

Comments
 (0)