Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dynamic Selection] Skipping auto_tune and dynamic load tests when device=FPGA_EMU #1440

Merged
merged 3 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ main()
bool bProcessed = false;

#if TEST_DYNAMIC_SELECTION_AVAILABLE
#if !ONEDPL_FPGA_DEVICE || !ONEDPL_FPGA_EMULATOR
using policy_t = oneapi::dpl::experimental::auto_tune_policy<oneapi::dpl::experimental::sycl_backend>;
std::vector<sycl::queue> u;
build_auto_tune_universe(u);
Expand Down Expand Up @@ -542,6 +543,7 @@ main()

bProcessed = true;
}
#endif // Devices available are CPU and GPU
#endif // TEST_DYNAMIC_SELECTION_AVAILABLE

return TestUtils::done(bProcessed);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ main()
bool bProcessed = false;

#if TEST_DYNAMIC_SELECTION_AVAILABLE
#if !ONEDPL_FPGA_DEVICE || !ONEDPL_FPGA_EMULATOR
using policy_t = oneapi::dpl::experimental::dynamic_load_policy<oneapi::dpl::experimental::sycl_backend>;
std::vector<sycl::queue> u;
build_dl_universe(u);
Expand Down Expand Up @@ -76,6 +77,7 @@ main()

bProcessed = true;
}
#endif // Devices available are CPU and GPU
#endif // TEST_DYNAMIC_SELECTION_AVAILABLE

return TestUtils::done(bProcessed);
Expand Down
2 changes: 1 addition & 1 deletion test/support/utils_sycl.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ make_new_policy(_Policy&& __policy)
#if ONEDPL_FPGA_DEVICE
inline auto default_selector =
# if ONEDPL_FPGA_EMULATOR
sycl::ext::intel::fpga_emulator_selector{};
sycl::ext::intel::fpga_emulator_selector_v;
# else
sycl::ext::intel::fpga_selector{};
# endif // ONEDPL_FPGA_EMULATOR
Expand Down
Loading