Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions sycl/plugins/unified_runtime/ur/adapters/hip/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ struct ur_device_handle_t_ {
ur_platform_handle_t Platform;
hipCtx_t HIPContext;

size_t MaxAllocSize{0};

public:
ur_device_handle_t_(native_type HipDevice, hipCtx_t Context,
ur_platform_handle_t Platform)
Expand Down
7 changes: 4 additions & 3 deletions sycl/plugins/unified_runtime/ur/adapters/hip/usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urUSMFree(ur_context_handle_t hContext,

ur_result_t USMDeviceAllocImpl(void **ResultPtr, ur_context_handle_t Context,
ur_device_handle_t, ur_usm_device_mem_flags_t *,
size_t Size, uint32_t Alignment) {
size_t Size,
[[maybe_unused]] uint32_t Alignment) {
try {
ScopedContext Active(Context->getDevice());
UR_CHECK_ERROR(hipMalloc(ResultPtr, Size));
Expand All @@ -114,7 +115,7 @@ ur_result_t USMDeviceAllocImpl(void **ResultPtr, ur_context_handle_t Context,
ur_result_t USMSharedAllocImpl(void **ResultPtr, ur_context_handle_t Context,
ur_device_handle_t, ur_usm_host_mem_flags_t *,
ur_usm_device_mem_flags_t *, size_t Size,
uint32_t Alignment) {
[[maybe_unused]] uint32_t Alignment) {
try {
ScopedContext Active(Context->getDevice());
UR_CHECK_ERROR(hipMallocManaged(ResultPtr, Size, hipMemAttachGlobal));
Expand All @@ -128,7 +129,7 @@ ur_result_t USMSharedAllocImpl(void **ResultPtr, ur_context_handle_t Context,

ur_result_t USMHostAllocImpl(void **ResultPtr, ur_context_handle_t Context,
ur_usm_host_mem_flags_t *, size_t Size,
uint32_t Alignment) {
[[maybe_unused]] uint32_t Alignment) {
try {
ScopedContext Active(Context->getDevice());
UR_CHECK_ERROR(hipHostMalloc(ResultPtr, Size));
Expand Down