Skip to content

Commit 63d75dc

Browse files
committed
address review
format
1 parent 00ba5f1 commit 63d75dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interfaces/sycl/Memory.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ void ConcreteAPI::freeMem(void* devPtr) {
5151
}
5252

5353
// Use the first device context to free memory
54-
DeviceContext* context = this->availableDevices[0];
55-
if (!context)
54+
DeviceContext* context = this->availableDevices[getDeviceId()];
55+
if (!context){
5656
return;
57-
57+
}
5858
auto& map = context->memoryToSizeMap;
5959

6060
if (map.find(devPtr) == map.end()) {

0 commit comments

Comments
 (0)