Skip to content

Commit d67e0e9

Browse files
committed
Apply suggestion
Signed-off-by: amochalo <[email protected]>
1 parent aa01a1d commit d67e0e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ bool isInlineASMSupported(sycl::device Device) {
9999
/// \returns false if test wasn't launched (i.e.was skipped) and true otherwise
100100
template <typename F>
101101
bool launchInlineASMTest(F &f, bool requires_particular_sg_size = true) {
102+
#if !defined(INLINE_ASM)
103+
return true; // any device is capable to launch reference versions of tests
104+
#endif
102105
cl::sycl::queue deviceQueue(cl::sycl::gpu_selector{});
103106
cl::sycl::device device = deviceQueue.get_device();
104107

0 commit comments

Comments
 (0)