File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
sycl/test/inline-asm/include Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,13 @@ bool isInlineASMSupported(sycl::device Device) {
100
100
template <typename F>
101
101
bool launchInlineASMTest (F &f, bool requires_particular_sg_size = true ) {
102
102
#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)) {
109
104
std::cout << " Skipping test\n " ;
110
105
return false ;
111
106
}
107
+ #endif
108
+ cl::sycl::queue deviceQueue (cl::sycl::gpu_selector{});
109
+ cl::sycl::device device = deviceQueue.get_device ();
112
110
113
111
if (requires_particular_sg_size && !device.has_extension (" cl_intel_required_subgroup_size" )) {
114
112
std::cout << " Skipping test\n " ;
You can’t perform that action at this time.
0 commit comments