@@ -24,14 +24,6 @@ TEST_P(urHipContextTest, ActiveContexts) {
2424
2525 // ensure that the queue has the correct context
2626 ASSERT_EQ (context, queue->getContext ());
27-
28- // check that the current context is the active HIP context
29- hipCtx_t hipContext = nullptr ;
30- ASSERT_SUCCESS_HIP (hipCtxGetCurrent (&hipContext));
31- ASSERT_NE (hipContext, nullptr );
32- if (context->getDevices ().size () == 1 ) {
33- ASSERT_EQ (hipContext, context->getDevices ()[0 ]->getNativeContext ());
34- }
3527}
3628
3729TEST_P (urHipContextTest, ActiveContextsThreads) {
@@ -50,7 +42,6 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {
5042 bool thread_done = false ;
5143
5244 auto test_thread = std::thread ([&] {
53- hipCtx_t current = nullptr ;
5445 {
5546 uur::raii::Queue queue = nullptr ;
5647 ASSERT_SUCCESS (
@@ -59,13 +50,6 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {
5950
6051 // ensure queue has the correct context
6152 ASSERT_EQ (queue->getContext (), context1);
62-
63- // check that the first context is now the active HIP context
64- ASSERT_SUCCESS_HIP (hipCtxGetCurrent (¤t));
65- if (context1->getDevices ().size () == 1 ) {
66- ASSERT_EQ (current,
67- context1->getDevices ()[0 ]->getNativeContext ());
68- }
6953 }
7054
7155 // mark the first set of processing as done and notify the main thread
@@ -90,13 +74,6 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {
9074
9175 // ensure the queue has the correct context
9276 ASSERT_EQ (queue->getContext (), context2);
93-
94- // check that the second context is now the active HIP context
95- ASSERT_SUCCESS_HIP (hipCtxGetCurrent (¤t));
96- if (context2->getDevices ().size () == 1 ) {
97- ASSERT_EQ (current,
98- context2->getDevices ()[0 ]->getNativeContext ());
99- }
10077 }
10178 });
10279
0 commit comments