Skip to content

Commit 29c858a

Browse files
committed
Small fix
Signed-off-by: amochalo <[email protected]>
1 parent d67e0e9 commit 29c858a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

sycl/test/inline-asm/include/asmhelper.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,13 @@ bool isInlineASMSupported(sycl::device Device) {
100100
template <typename F>
101101
bool launchInlineASMTest(F &f, bool requires_particular_sg_size = true) {
102102
#if !defined(INLINE_ASM)
103-
return true; // any device is capable to launch reference versions of tests
104-
#endif
105-
cl::sycl::queue deviceQueue(cl::sycl::gpu_selector{});
106-
cl::sycl::device device = deviceQueue.get_device();
107-
108-
if (!isInlineASMSupported(device)) {
103+
if (!isInlineASMSupported(device)) {
109104
std::cout << "Skipping test\n";
110105
return false;
111106
}
107+
#endif
108+
cl::sycl::queue deviceQueue(cl::sycl::gpu_selector{});
109+
cl::sycl::device device = deviceQueue.get_device();
112110

113111
if (requires_particular_sg_size && !device.has_extension("cl_intel_required_subgroup_size")) {
114112
std::cout << "Skipping test\n";

0 commit comments

Comments
 (0)