File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
sycl/test/inline-asm/include Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,15 @@ bool isInlineASMSupported(sycl::device Device) {
99
99
// / \returns false if test wasn't launched (i.e.was skipped) and true otherwise
100
100
template <typename F>
101
101
bool launchInlineASMTest (F &f, bool requires_particular_sg_size = true ) {
102
+ cl::sycl::queue deviceQueue (cl::sycl::gpu_selector{});
103
+ cl::sycl::device device = deviceQueue.get_device ();
104
+
102
105
#if !defined(INLINE_ASM)
103
- if (!isInlineASMSupported (device)) {
106
+ if (!isInlineASMSupported (device)) {
104
107
std::cout << " Skipping test\n " ;
105
108
return false ;
106
109
}
107
110
#endif
108
- cl::sycl::queue deviceQueue (cl::sycl::gpu_selector{});
109
- cl::sycl::device device = deviceQueue.get_device ();
110
111
111
112
if (requires_particular_sg_size && !device.has_extension (" cl_intel_required_subgroup_size" )) {
112
113
std::cout << " Skipping test\n " ;
You can’t perform that action at this time.
0 commit comments