Skip to content

Commit 9a18910

Browse files
Enabled code previously excluded due to use of DPCTL_COVERAGE variable to work around issues in compiler which have now been addressed
1 parent fbe078e commit 9a18910

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

libsyclinterface/cmake/modules/SetupCoverage.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ function(setup_coverage_generation)
1212
"-fcoverage-mapping "
1313
"-fno-sycl-use-footer "
1414
# "-save-temps=obj "
15-
"-DDPCTL_COVERAGE "
1615
)
1716

1817
# Add profiling flags

libsyclinterface/tests/test_sycl_event_interface.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ using namespace cl::sycl;
3535

3636
namespace
3737
{
38-
#ifndef DPCTL_COVERAGE
3938
sycl::event produce_event(sycl::queue &Q, sycl::buffer<int> &data)
4039
{
4140
int N = data.get_range()[0];
@@ -55,7 +54,6 @@ sycl::event produce_event(sycl::queue &Q, sycl::buffer<int> &data)
5554

5655
return e2;
5756
}
58-
#endif
5957
} // namespace
6058

6159
struct TestDPCTLSyclEventInterface : public ::testing::Test
@@ -156,7 +154,6 @@ TEST_F(TestDPCTLSyclEventInterface, ChkGetCommandExecutionStatus)
156154
EXPECT_TRUE(ESTy == DPCTLSyclEventStatusType::DPCTL_COMPLETE);
157155
}
158156

159-
#ifndef DPCTL_COVERAGE
160157
TEST_F(TestDPCTLSyclEventInterface, CheckGetProfiling)
161158
{
162159
property_list propList{property::queue::enable_profiling()};
@@ -173,7 +170,6 @@ TEST_F(TestDPCTLSyclEventInterface, CheckGetProfiling)
173170
EXPECT_TRUE(eEnd);
174171
EXPECT_TRUE(eSubmit);
175172
}
176-
#endif
177173

178174
TEST_F(TestDPCTLSyclEventInterface, CheckGetProfiling_Invalid)
179175
{
@@ -195,7 +191,6 @@ TEST_F(TestDPCTLSyclEventInterface, CheckGetWaitList)
195191
EXPECT_NO_FATAL_FAILURE(DPCTLEventVector_Delete(EVRef));
196192
}
197193

198-
#ifndef DPCTL_COVERAGE
199194
TEST_F(TestDPCTLSyclEventInterface, CheckGetWaitListSYCL)
200195
{
201196
sycl::queue q;
@@ -209,4 +204,3 @@ TEST_F(TestDPCTLSyclEventInterface, CheckGetWaitListSYCL)
209204
ASSERT_TRUE(DPCTLEventVector_Size(EVRef) > 0);
210205
DPCTLEventVector_Delete(EVRef);
211206
}
212-
#endif

libsyclinterface/tests/test_sycl_queue_submit.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
//===----------------------------------------------------------------------===//
2525

2626
#include "Support/CBindingWrapping.h"
27-
#ifndef DPCTL_COVERAGE
2827
#include "dpcpp_kernels.hpp"
29-
#endif
3028
#include "dpctl_sycl_context_interface.h"
3129
#include "dpctl_sycl_device_interface.h"
3230
#include "dpctl_sycl_device_selector_interface.h"
@@ -193,7 +191,6 @@ TEST_F(TestQueueSubmit, CheckSubmitNDRange_saxpy)
193191
DPCTLDeviceSelector_Delete(DSRef);
194192
}
195193

196-
#ifndef DPCTL_COVERAGE
197194
namespace
198195
{
199196

@@ -473,5 +470,3 @@ TEST_F(TestQueueSubmitBarrier, ChkSubmitBarrierWithEvents)
473470
EXPECT_NO_FATAL_FAILURE(DPCTLEvent_Delete(DepsERefs[0]));
474471
EXPECT_NO_FATAL_FAILURE(DPCTLEvent_Delete(DepsERefs[1]));
475472
}
476-
477-
#endif

0 commit comments

Comments
 (0)