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

Blit directly from GPU object to texture #2

Open
athas opened this issue Feb 12, 2019 · 4 comments
Open

Blit directly from GPU object to texture #2

athas opened this issue Feb 12, 2019 · 4 comments

Comments

@athas
Copy link
Member

athas commented Feb 12, 2019

We need to find a way to avoid the copy to CPU memory.

@athas
Copy link
Member Author

athas commented Feb 25, 2019

I tried disabling the roundtrip entirely (thereby disabling rendering), and for some reason it did not become that much faster. Maybe this is not the bottleneck we think it is.

@nqpz
Copy link
Member

nqpz commented Feb 25, 2019

The line

FUT_CHECK(ctx->fut, futhark_values_i32_2d(ctx->fut, out_arr, ctx->data));

takes ~1.5 ms on my laptop for every frame. Wouldn't somehow blitting the cl_mem directly get rid of this overhead, or am I missing some details?

@athas
Copy link
Member Author

athas commented Feb 26, 2019

It would, but 1.5ms is not a lot, is all I'm saying.

@nqpz
Copy link
Member

nqpz commented Feb 26, 2019

Well... 1.5 ms is not enough for me to do anything about it, but it would still be nice to get rid of it.

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

2 participants