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

/examples/nvexec/bulk.cpp using nvexec::multi_gpu_stream_context? #1304

Open
Tomcat-42 opened this issue Apr 15, 2024 · 0 comments
Open

/examples/nvexec/bulk.cpp using nvexec::multi_gpu_stream_context? #1304

Tomcat-42 opened this issue Apr 15, 2024 · 0 comments

Comments

@Tomcat-42
Copy link

Tomcat-42 commented Apr 15, 2024

Hello,

I've been messing around with the library examples and noted that the /examples/nvexec/bulk.cpp does not compile when using nvexec::multi_gpu_stream_context. What is the "canonical" way to send a bulk job to a multi-gpu context?

I'm writting a multi-agent simulator, and currently I'm using:

    const auto work2 = stdexec::when_all(
      stdexec::just() |
        exec::on(gpu, stdexec::bulk(environment->size, human_mosquito_contact)),
      stdexec::just() |
        exec::on(gpu,
                 stdexec::bulk(environment->size, mosquito_mosquito_contact)));
    
	stdexec::sync_wait(std::move(work2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant