Does sycl have a feature like cudaStreamBeginCapture to create graph dependency automatically when using taskflow? #12950
Answered
by
EwanC
mazhaojia123
asked this question in
Q&A
-
Hi, Does sycl have a feature like cudaStreamBeginCapture to create graph dependency automatically when using taskflow? Is there any code sample like following code using sycl with taskflow? # A simple cuda code sample to create graph.
cudaStreamBeginCapture(default_stream, cudaStreamCaptureModeGlobal);
kernel();
cudaStreamEndCapture(default_stream, &graph);
cudaGraphInstantiate(&instance, graph, NULL, NULL, 0); BTW, I want to offload my SYCL kernels to nvidia GPUs. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
EwanC
Mar 11, 2024
Replies: 1 comment 2 replies
-
Tagging @intel/sycl-graphs-reviewers team to answer. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, thanks for the question. The sycl_ext_oneapi_graph extension to DPC++ should provide an equivalent feature using code like:
sycl_ext_oneapi_graph supports the CUDA SYCL backend by using CUDA-Graph in the implementation, so you will be able to use an NVIDIA GPU with the extension. I can't c…