@@ -86,7 +86,7 @@ static cl::Program programPool[POOL_MAX];
8686static cl::khr::CommandBuffer commandBufferKhrPool[POOL_MAX];
8787#endif
8888#if defined(cl_khr_semaphore)
89- static cl::Semaphore semaphorePool[POOL_MAX];
89+ static cl::khr:: Semaphore semaphorePool[POOL_MAX];
9090#endif
9191static cl::Device devicePool[POOL_MAX];
9292
@@ -3633,15 +3633,17 @@ void testDevice_GetInfo_CLDeviceName()
36333633}
36343634
36353635/* ***************************************************************************
3636- * Tests for cl::Semaphore
3636+ * Tests for cl::khr:: Semaphore
36373637 ****************************************************************************/
36383638#if defined(cl_khr_semaphore)
36393639void testMoveAssignSemaphoreNonNull (void );
36403640void testMoveAssignSemaphoreNull (void );
36413641void testMoveConstructSemaphoreNonNull (void );
36423642void testMoveConstructSemaphoreNull (void );
36433643namespace cl {
3644- MAKE_MOVE_TESTS (Semaphore, make_semaphore_khr, clReleaseSemaphoreKHR, semaphorePool);
3644+ namespace khr {
3645+ MAKE_MOVE_TESTS (Semaphore, make_semaphore_khr, clReleaseSemaphoreKHR, semaphorePool);
3646+ }
36453647}
36463648#else
36473649void testMoveAssignSemaphoreNonNull (void ) {}
@@ -3682,7 +3684,7 @@ void testEnqueueWaitSemaphores(void)
36823684{
36833685 clEnqueueWaitSemaphoresKHR_StubWithCallback (clEnqueueWaitSemaphoresKHR_testEnqueueWaitSemaphores);
36843686
3685- VECTOR_CLASS<cl::Semaphore> sema_objects;
3687+ VECTOR_CLASS<cl::khr:: Semaphore> sema_objects;
36863688 sema_objects.emplace_back (make_semaphore_khr (1 ));
36873689 VECTOR_CLASS<cl_semaphore_payload_khr> sema_payloads (1 );
36883690 cl::Event event;
@@ -3727,7 +3729,7 @@ void testEnqueueSignalSemaphores(void)
37273729{
37283730 clEnqueueSignalSemaphoresKHR_StubWithCallback (clEnqueueSignalSemaphoresKHR_testEnqueueSignalSemaphores);
37293731
3730- VECTOR_CLASS<cl::Semaphore> sema_objects;
3732+ VECTOR_CLASS<cl::khr:: Semaphore> sema_objects;
37313733 sema_objects.emplace_back (make_semaphore_khr (2 ));
37323734 VECTOR_CLASS<cl_semaphore_payload_khr> sema_payloads (1 );
37333735 cl::Event event;
@@ -3770,7 +3772,7 @@ void testSemaphoreWithProperties(void)
37703772
37713773 VECTOR_CLASS<cl_semaphore_properties_khr> sema_props{CL_SEMAPHORE_TYPE_KHR};
37723774 cl_int err = CL_INVALID_OPERATION;
3773- cl::Semaphore sem (contextPool[0 ], sema_props, &err);
3775+ cl::khr:: Semaphore sem (contextPool[0 ], sema_props, &err);
37743776
37753777 TEST_ASSERT_EQUAL (CL_SUCCESS, err);
37763778 TEST_ASSERT_EQUAL_PTR (make_semaphore_khr (1 ), sem ());
@@ -4118,7 +4120,7 @@ void testTemplateGetSemaphoreHandleForTypeKHR()
41184120
41194121 clGetSemaphoreHandleForTypeKHR_StubWithCallback (clGetSemaphoreHandleForTypeKHR_GetHandles);
41204122
4121- cl::Semaphore semaphore;
4123+ cl::khr:: Semaphore semaphore;
41224124#if defined(cl_khr_external_semaphore_dx_fence)
41234125 {
41244126 auto handle0 = semaphore.getHandleForTypeKHR <cl::ExternalSemaphoreType::D3D12Fence>(device);
0 commit comments