Skip to content

Commit e01bbb5

Browse files
authored
fix simple add usm selector (#1213)
Signed-off-by: Yohann Uguen <[email protected]> Signed-off-by: Yohann Uguen <[email protected]>
1 parent c2e5673 commit e01bbb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DirectProgramming/DPC++/DenseLinearAlgebra/simple-add/src/simple-add-usm.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ int main() {
7575
// Create device selector for the device of your interest.
7676
#if FPGA_EMULATOR
7777
// Intel extension: FPGA emulator selector on systems without FPGA card.
78-
const auto& selector = ext::intel::fpga_emulator_selector_v;
78+
ext::intel::fpga_emulator_selector selector;
7979
#elif FPGA
8080
// Intel extension: FPGA selector on systems with FPGA card.
81-
const auto& selector = ext::intel::fpga_selector_v;
81+
ext::intel::fpga_selector selector;
8282
#else
8383
// The default device selector will select the most performant device.
84-
const auto& selector = default_selector_v;
84+
auto selector{default_selector_v};
8585
#endif
8686

8787
constexpr int value = 100000;

0 commit comments

Comments
 (0)