Skip to content

Instantly share code, notes, and snippets.

@ddemidov
Created April 11, 2014 06:45
Show Gist options
  • Save ddemidov/10444799 to your computer and use it in GitHub Desktop.
Save ddemidov/10444799 to your computer and use it in GitHub Desktop.
#include <vexcl/vexcl.hpp>
int main() {
const size_t n = 16;
std::unique_ptr< vex::vector<int> > x;
{
vex::Context ctx(vex::Filter::Env);
std::cout << ctx << std::endl;
x.reset(new vex::vector<int>(ctx, n));
}
*x = 1;
std::cout << *x << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment