Skip to content

Commit ec09e2c

Browse files
author
Chen, Brox
committed
change selector
1 parent 9515e73 commit ec09e2c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/cholesky/src/cholesky_demo.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ int main(int argc, char *argv[]) {
8989
try {
9090
// SYCL boilerplate
9191
#if defined(FPGA_EMULATOR)
92-
sycl::ext::intel::fpga_emulator_selector device_selector;
92+
const auto& device_selector = sycl::ext::intel::fpga_emulator_selector_v;
9393
#elif defined(FPGA_SIMULATOR)
94-
sycl::ext::intel::fpga_simulator_selector device_selector;
94+
const auto& device_selector = sycl::ext::intel::fpga_simulator_selector_v;
9595
#else
96-
sycl::ext::intel::fpga_selector device_selector;
96+
const auto& device_selector = sycl::ext::intel::fpga_selector_v;
9797
#endif
9898

9999
// Enable the queue profiling to time the execution

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/cholesky_inversion/src/cholesky_inversion_demo.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,11 @@ int main(int argc, char *argv[]) {
359359
try {
360360
// SYCL boilerplate
361361
#if defined(FPGA_EMULATOR)
362-
sycl::ext::intel::fpga_emulator_selector device_selector;
362+
const auto& device_selector = sycl::ext::intel::fpga_emulator_selector_v;
363363
#elif defined(FPGA_SIMULATOR)
364-
sycl::ext::intel::fpga_simulator_selector device_selector;
364+
const auto& device_selector = sycl::ext::intel::fpga_simulator_selector_v;
365365
#else
366-
sycl::ext::intel::fpga_selector device_selector;
366+
const auto& device_selector = sycl::ext::intel::fpga_selector_v;
367367
#endif
368368

369369
// Enable the queue profiling to time the execution

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/qri/src/qri_demo.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ int main(int argc, char *argv[]) {
214214
try {
215215
// SYCL boilerplate
216216
#if defined(FPGA_EMULATOR)
217-
sycl::ext::intel::fpga_emulator_selector device_selector;
217+
const auto& device_selector = sycl::ext::intel::fpga_emulator_selector_v;
218218
#elif defined(FPGA_SIMULATOR)
219-
sycl::ext::intel::fpga_simulator_selector device_selector;
219+
const auto& device_selector = sycl::ext::intel::fpga_simulator_selector_v;
220220
#else
221-
sycl::ext::intel::fpga_selector device_selector;
221+
const auto& device_selector = sycl::ext::intel::fpga_selector_v;
222222
#endif
223223

224224
// Enable the queue profiling to time the execution

0 commit comments

Comments
 (0)