@@ -101,13 +101,6 @@ __urdlllocal ur_result_t UR_APICALL urAdapterRelease(
101
101
// forward to device-platform
102
102
result = pfnAdapterRelease (hAdapter);
103
103
104
- if (UR_RESULT_SUCCESS != result) {
105
- return result;
106
- }
107
-
108
- // release loader handle
109
- ur_adapter_factory.release (hAdapter);
110
-
111
104
return result;
112
105
}
113
106
@@ -636,13 +629,6 @@ __urdlllocal ur_result_t UR_APICALL urDeviceRelease(
636
629
// forward to device-platform
637
630
result = pfnRelease (hDevice);
638
631
639
- if (UR_RESULT_SUCCESS != result) {
640
- return result;
641
- }
642
-
643
- // release loader handle
644
- ur_device_factory.release (hDevice);
645
-
646
632
return result;
647
633
}
648
634
@@ -920,13 +906,6 @@ __urdlllocal ur_result_t UR_APICALL urContextRelease(
920
906
// forward to device-platform
921
907
result = pfnRelease (hContext);
922
908
923
- if (UR_RESULT_SUCCESS != result) {
924
- return result;
925
- }
926
-
927
- // release loader handle
928
- ur_context_factory.release (hContext);
929
-
930
909
return result;
931
910
}
932
911
@@ -1232,13 +1211,6 @@ __urdlllocal ur_result_t UR_APICALL urMemRelease(
1232
1211
// forward to device-platform
1233
1212
result = pfnRelease (hMem);
1234
1213
1235
- if (UR_RESULT_SUCCESS != result) {
1236
- return result;
1237
- }
1238
-
1239
- // release loader handle
1240
- ur_mem_factory.release (hMem);
1241
-
1242
1214
return result;
1243
1215
}
1244
1216
@@ -1597,13 +1569,6 @@ __urdlllocal ur_result_t UR_APICALL urSamplerRelease(
1597
1569
// forward to device-platform
1598
1570
result = pfnRelease (hSampler);
1599
1571
1600
- if (UR_RESULT_SUCCESS != result) {
1601
- return result;
1602
- }
1603
-
1604
- // release loader handle
1605
- ur_sampler_factory.release (hSampler);
1606
-
1607
1572
return result;
1608
1573
}
1609
1574
@@ -2038,13 +2003,6 @@ __urdlllocal ur_result_t UR_APICALL urUSMPoolRelease(
2038
2003
// forward to device-platform
2039
2004
result = pfnPoolRelease (pPool);
2040
2005
2041
- if (UR_RESULT_SUCCESS != result) {
2042
- return result;
2043
- }
2044
-
2045
- // release loader handle
2046
- ur_usm_pool_factory.release (pPool);
2047
-
2048
2006
return result;
2049
2007
}
2050
2008
@@ -2435,13 +2393,6 @@ __urdlllocal ur_result_t UR_APICALL urPhysicalMemRelease(
2435
2393
// forward to device-platform
2436
2394
result = pfnRelease (hPhysicalMem);
2437
2395
2438
- if (UR_RESULT_SUCCESS != result) {
2439
- return result;
2440
- }
2441
-
2442
- // release loader handle
2443
- ur_physical_mem_factory.release (hPhysicalMem);
2444
-
2445
2396
return result;
2446
2397
}
2447
2398
@@ -2686,13 +2637,6 @@ __urdlllocal ur_result_t UR_APICALL urProgramRelease(
2686
2637
// forward to device-platform
2687
2638
result = pfnRelease (hProgram);
2688
2639
2689
- if (UR_RESULT_SUCCESS != result) {
2690
- return result;
2691
- }
2692
-
2693
- // release loader handle
2694
- ur_program_factory.release (hProgram);
2695
-
2696
2640
return result;
2697
2641
}
2698
2642
@@ -3283,13 +3227,6 @@ __urdlllocal ur_result_t UR_APICALL urKernelRelease(
3283
3227
// forward to device-platform
3284
3228
result = pfnRelease (hKernel);
3285
3229
3286
- if (UR_RESULT_SUCCESS != result) {
3287
- return result;
3288
- }
3289
-
3290
- // release loader handle
3291
- ur_kernel_factory.release (hKernel);
3292
-
3293
3230
return result;
3294
3231
}
3295
3232
@@ -3736,13 +3673,6 @@ __urdlllocal ur_result_t UR_APICALL urQueueRelease(
3736
3673
// forward to device-platform
3737
3674
result = pfnRelease (hQueue);
3738
3675
3739
- if (UR_RESULT_SUCCESS != result) {
3740
- return result;
3741
- }
3742
-
3743
- // release loader handle
3744
- ur_queue_factory.release (hQueue);
3745
-
3746
3676
return result;
3747
3677
}
3748
3678
@@ -4050,13 +3980,6 @@ __urdlllocal ur_result_t UR_APICALL urEventRelease(
4050
3980
// forward to device-platform
4051
3981
result = pfnRelease (hEvent);
4052
3982
4053
- if (UR_RESULT_SUCCESS != result) {
4054
- return result;
4055
- }
4056
-
4057
- // release loader handle
4058
- ur_event_factory.release (hEvent);
4059
-
4060
3983
return result;
4061
3984
}
4062
3985
@@ -5919,13 +5842,6 @@ urBindlessImagesUnsampledImageHandleDestroyExp(
5919
5842
// forward to device-platform
5920
5843
result = pfnUnsampledImageHandleDestroyExp (hContext, hDevice, hImage);
5921
5844
5922
- if (UR_RESULT_SUCCESS != result) {
5923
- return result;
5924
- }
5925
-
5926
- // release loader handle
5927
- ur_exp_image_factory.release (hImage);
5928
-
5929
5845
return result;
5930
5846
}
5931
5847
@@ -5960,13 +5876,6 @@ urBindlessImagesSampledImageHandleDestroyExp(
5960
5876
// forward to device-platform
5961
5877
result = pfnSampledImageHandleDestroyExp (hContext, hDevice, hImage);
5962
5878
5963
- if (UR_RESULT_SUCCESS != result) {
5964
- return result;
5965
- }
5966
-
5967
- // release loader handle
5968
- ur_exp_image_factory.release (hImage);
5969
-
5970
5879
return result;
5971
5880
}
5972
5881
@@ -6046,13 +5955,6 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesImageFreeExp(
6046
5955
// forward to device-platform
6047
5956
result = pfnImageFreeExp (hContext, hDevice, hImageMem);
6048
5957
6049
- if (UR_RESULT_SUCCESS != result) {
6050
- return result;
6051
- }
6052
-
6053
- // release loader handle
6054
- ur_exp_image_mem_factory.release (hImageMem);
6055
-
6056
5958
return result;
6057
5959
}
6058
5960
@@ -6349,13 +6251,6 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesMipmapFreeExp(
6349
6251
// forward to device-platform
6350
6252
result = pfnMipmapFreeExp (hContext, hDevice, hMem);
6351
6253
6352
- if (UR_RESULT_SUCCESS != result) {
6353
- return result;
6354
- }
6355
-
6356
- // release loader handle
6357
- ur_exp_image_mem_factory.release (hMem);
6358
-
6359
6254
return result;
6360
6255
}
6361
6256
@@ -6490,13 +6385,6 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesReleaseInteropExp(
6490
6385
// forward to device-platform
6491
6386
result = pfnReleaseInteropExp (hContext, hDevice, hInteropMem);
6492
6387
6493
- if (UR_RESULT_SUCCESS != result) {
6494
- return result;
6495
- }
6496
-
6497
- // release loader handle
6498
- ur_exp_interop_mem_factory.release (hInteropMem);
6499
-
6500
6388
return result;
6501
6389
}
6502
6390
@@ -6583,13 +6471,6 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp(
6583
6471
result =
6584
6472
pfnDestroyExternalSemaphoreExp (hContext, hDevice, hInteropSemaphore);
6585
6473
6586
- if (UR_RESULT_SUCCESS != result) {
6587
- return result;
6588
- }
6589
-
6590
- // release loader handle
6591
- ur_exp_interop_semaphore_factory.release (hInteropSemaphore);
6592
-
6593
6474
return result;
6594
6475
}
6595
6476
@@ -6833,13 +6714,6 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferReleaseExp(
6833
6714
// forward to device-platform
6834
6715
result = pfnReleaseExp (hCommandBuffer);
6835
6716
6836
- if (UR_RESULT_SUCCESS != result) {
6837
- return result;
6838
- }
6839
-
6840
- // release loader handle
6841
- ur_exp_command_buffer_factory.release (hCommandBuffer);
6842
-
6843
6717
return result;
6844
6718
}
6845
6719
@@ -7586,13 +7460,6 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferReleaseCommandExp(
7586
7460
// forward to device-platform
7587
7461
result = pfnReleaseCommandExp (hCommand);
7588
7462
7589
- if (UR_RESULT_SUCCESS != result) {
7590
- return result;
7591
- }
7592
-
7593
- // release loader handle
7594
- ur_exp_command_buffer_command_factory.release (hCommand);
7595
-
7596
7463
return result;
7597
7464
}
7598
7465
0 commit comments