Skip to content

Commit cae9fa0

Browse files
author
Diptorup Deb
committed
Rename the constructor.
1 parent 8dd43ae commit cae9fa0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dpctl-capi/include/dpctl_sycl_context_interface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ DPCTLContext_Create(__dpctl_keep const DPCTLSyclDeviceRef DRef,
7272
*/
7373
DPCTL_API
7474
__dpctl_give DPCTLSyclContextRef
75-
DPCTLContext_CreateForDevices(__dpctl_keep const DPCTLDeviceVectorRef DVRef,
76-
error_handler_callback *error_handler,
77-
int properties);
75+
DPCTLContext_CreateFromDevices(__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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ DPCTLContext_Create(__dpctl_keep const DPCTLSyclDeviceRef DRef,
6262
}
6363

6464
__dpctl_give DPCTLSyclContextRef
65-
DPCTLContext_CreateForDevices(__dpctl_keep const DPCTLDeviceVectorRef DVRef,
66-
error_handler_callback *error_handler,
67-
int /**/)
65+
DPCTLContext_CreateFromDevices(__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_CreateForDevices(DVRef, nullptr, 0));
105+
CRef = DPCTLContext_CreateFromDevices(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)