Skip to content

Commit c130965

Browse files
committed
Add static_cast of warpSize
1 parent ef3a99a commit c130965

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/alpaka/dev/DevGenericSycl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ namespace alpaka
223223
{
224224
static auto getWarpSizes(DevGenericSycl<TTag> const& dev) -> std::vector<std::size_t>
225225
{
226-
auto& warpSizes = dev.m_impl->deviceProperties().warpSizes
226+
auto& warpSizes = dev.m_impl->deviceProperties().warpSizes;
227227
{
228228
std::lock_guard<std::shared_mutex> lock(dev.m_impl->mutex());
229229
if(!warpSizes.has_value())

include/alpaka/dev/DevUniformCudaHipRt.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ namespace alpaka
172172
{
173173
ALPAKA_FN_HOST static auto getFreeMemBytes(DevUniformCudaHipRt<TApi> const& dev) -> std::size_t
174174
{
175-
auto& freeInternal = dev.m_QueueRegistry->deviceProperties().freeInternal;
175+
auto& totalGlobalMem = dev.m_QueueRegistry->deviceProperties().totalGlobalMem;
176176
std::size_t freeInternal(0u);
177177
{
178178
std::lock_guard<std::mutex> lock(dev.m_QueueRegistry->mutex());
@@ -216,7 +216,7 @@ namespace alpaka
216216
&warpSize,
217217
TApi::deviceAttributeWarpSize,
218218
dev.getNativeHandle()));
219-
warpSizes = std::vector<std::size_t>{warpSize};
219+
warpSizes = std::vector<std::size_t>{static_cast<std::size_t>(warpSize)};
220220
}
221221
}
222222
}

0 commit comments

Comments
 (0)