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

unittest kernels #15

Open
9il opened this issue Feb 28, 2017 · 1 comment
Open

unittest kernels #15

9il opened this issue Feb 28, 2017 · 1 comment

Comments

@9il
Copy link
Member

9il commented Feb 28, 2017

We need a simple way to write GPU unittests for small projects.

@thewilsonator
Copy link
Collaborator

I think this will come naturally as we get the library to be easy to use. I suspect the best way would be to have a string to be mixed in the tests if the library has been initialised and get a default device and queue. So you'd go:

unittest 
{
    import dcompute.testing : ensureDcomputeInitialised; // or whatever
    mixin(ensureDcomputeInitialised);
    Buffer b = initialiseFromData(getData());
    q.enqueue!someKernel(b, some, args);
}

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