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

Test PR #21

Closed
Closed
Changes from 1 commit
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
Next Next commit
Use a separate queue for each stream
  • Loading branch information
ariostas committed Apr 26, 2024
commit 5b3072b44676a0ab039b9ff4787f2e6aa746cdd6
9 changes: 6 additions & 3 deletions bin/sdl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,15 @@ int main(int argc, char** argv)
void run_sdl()
{
SDL::Dev devAcc = alpaka::getDevByIdx(ALPAKA_ACCELERATOR_NAMESPACE::Platform{}, 0u);
SDL::QueueAcc queue(devAcc);
std::vector<SDL::QueueAcc> queues;
for (int s = 0; s < ana.streams; s++) {
queues.push_back(SDL::QueueAcc(devAcc));
}

// Load various maps used in the SDL reconstruction
TStopwatch full_timer;
full_timer.Start();
loadMaps(devAcc, queue);
loadMaps(devAcc, queues[0]);
float timeForMapLoading = full_timer.RealTime()*1000;

if (ana.do_write_ntuple)
Expand Down Expand Up @@ -385,7 +388,7 @@ void run_sdl()
std::vector<SDL::Event<SDL::Acc>*> events;
for (int s = 0; s < ana.streams; s++)
{
SDL::Event<SDL::Acc> *event = new SDL::Event<SDL::Acc>(ana.verbose>=2, queue);
SDL::Event<SDL::Acc> *event = new SDL::Event<SDL::Acc>(ana.verbose>=2, queues[s]);
events.push_back(event);
}
float timeForEventCreation = full_timer.RealTime()*1000;
Expand Down