@@ -24,14 +24,6 @@ TEST_P(urHipContextTest, ActiveContexts) {
24
24
25
25
// ensure that the queue has the correct context
26
26
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
- }
35
27
}
36
28
37
29
TEST_P (urHipContextTest, ActiveContextsThreads) {
@@ -50,7 +42,6 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {
50
42
bool thread_done = false ;
51
43
52
44
auto test_thread = std::thread ([&] {
53
- hipCtx_t current = nullptr ;
54
45
{
55
46
uur::raii::Queue queue = nullptr ;
56
47
ASSERT_SUCCESS (
@@ -59,13 +50,6 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {
59
50
60
51
// ensure queue has the correct context
61
52
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
- }
69
53
}
70
54
71
55
// mark the first set of processing as done and notify the main thread
@@ -90,13 +74,6 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {
90
74
91
75
// ensure the queue has the correct context
92
76
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
- }
100
77
}
101
78
});
102
79
0 commit comments