Skip to content

Commit 8dd43ae

Browse files
author
Diptorup Deb
committed
Shorten function name.
1 parent b93b118 commit 8dd43ae

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

dpctl-capi/include/dpctl_sycl_context_interface.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ DPCTLContext_Create(__dpctl_keep const DPCTLSyclDeviceRef DRef,
7171
* @return A new opaque pointer wrapping a SYCL context.
7272
*/
7373
DPCTL_API
74-
__dpctl_give DPCTLSyclContextRef DPCTLContext_CreateFromDeviceVector(
75-
__dpctl_keep const DPCTLDeviceVectorRef DVRef,
76-
error_handler_callback *error_handler,
77-
int properties);
74+
__dpctl_give DPCTLSyclContextRef
75+
DPCTLContext_CreateForDevices(__dpctl_keep const DPCTLDeviceVectorRef DVRef,
76+
error_handler_callback *error_handler,
77+
int properties);
7878

7979
/*!
8080
* @brief Checks if two DPCTLSyclContextRef objects point to the same

dpctl-capi/source/dpctl_sycl_context_interface.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ DPCTLContext_Create(__dpctl_keep const DPCTLSyclDeviceRef DRef,
6161
return CRef;
6262
}
6363

64-
__dpctl_give DPCTLSyclContextRef DPCTLContext_CreateFromDeviceVector(
65-
__dpctl_keep const DPCTLDeviceVectorRef DVRef,
66-
error_handler_callback *error_handler,
67-
int /**/)
64+
__dpctl_give DPCTLSyclContextRef
65+
DPCTLContext_CreateForDevices(__dpctl_keep const DPCTLDeviceVectorRef DVRef,
66+
error_handler_callback *error_handler,
67+
int /**/)
6868
{
6969
DPCTLSyclContextRef CRef = nullptr;
7070
vector_class<device> Devices;

dpctl-capi/tests/test_sycl_context_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ TEST_P(TestDPCTLContextInterface, Chk_CreateWithDevices)
102102
unwrap(DVRef)->emplace_back(wrap(new device(sd)));
103103
}
104104
EXPECT_NO_FATAL_FAILURE(
105-
CRef = DPCTLContext_CreateFromDeviceVector(DVRef, nullptr, 0));
105+
CRef = DPCTLContext_CreateForDevices(DVRef, nullptr, 0));
106106
ASSERT_TRUE(CRef);
107107
} catch (feature_not_supported const &fnse) {
108108
GTEST_SKIP_("Skipping creating context for sub-devices");

0 commit comments

Comments
 (0)