Skip to content

Can I use cuBLAS directly in AMReX? (or are there alternatives?) #3603

Answered by WeiqunZhang
tony3601000 asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to use cuBLAS. As for memory management, you can replace

double* p;
cudaMalloc(&p, size_in_bytes);
dudaFree(p);

with

auto* p = (double*) The_Arena()->alloc(size_in_bytes);
The_Arena()->free(p);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tony3601000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants