Skip to content

Commit

Permalink
use the same device for any new queues in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FMarno committed Mar 23, 2023
1 parent 8d0a608 commit d6a5430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/dft/source/descriptor_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ inline void change_queue_causes_wait(sycl::queue& busy_queue) {
// signal used to avoid spurious wakeups
bool signal = false;

sycl::queue free_queue;
sycl::queue free_queue(busy_queue.get_device(), exception_handler);

// commit the descriptor on the "busy" queue
oneapi::mkl::dft::descriptor<precision, domain> descriptor{ default_1d_lengths };
Expand Down Expand Up @@ -517,7 +517,7 @@ inline void swap_out_dead_queue(sycl::queue& sycl_queue) {
// commit the descriptor on the "busy" queue
oneapi::mkl::dft::descriptor<precision, domain> descriptor{ default_1d_lengths };
{
sycl::queue transient_queue;
sycl::queue transient_queue(sycl_queue.get_device(), exception_handler);
EXPECT_NO_THROW(commit_descriptor(descriptor, transient_queue));
}
EXPECT_NO_THROW(commit_descriptor(descriptor, sycl_queue));
Expand Down

0 comments on commit d6a5430

Please sign in to comment.