Allocation and Execution on a single GPU
Posted: Mon Dec 03, 2018 11:44 pm
All,
I've just began to use MAGMA and clearly have some simple questions.
Consider the loop below:
do i = 1, N
call F(...)
call G(...)
enddo
where G uses a MAGMA function (eigensolver) and uses a private matrix S.
In addition all inputs and outputs of G are disjoint, i.e., the inputs and
outputs ar slices of a cube.
One approach would be to have the matrix S allocated on a GPU and batch the
various executions of G for each of the various iterations of the do loop.
I'm having a hard time figuring out how to do the following:
1. controlling the execution of the eigensolver on a single GPU since my system has two GPUs
2. allocating S on the GPU.
I could possibly go to C and use the queue and all that stuff but I'm wondering if there is a easier
route programming wise.
Best,
Pedro
I've just began to use MAGMA and clearly have some simple questions.
Consider the loop below:
do i = 1, N
call F(...)
call G(...)
enddo
where G uses a MAGMA function (eigensolver) and uses a private matrix S.
In addition all inputs and outputs of G are disjoint, i.e., the inputs and
outputs ar slices of a cube.
One approach would be to have the matrix S allocated on a GPU and batch the
various executions of G for each of the various iterations of the do loop.
I'm having a hard time figuring out how to do the following:
1. controlling the execution of the eigensolver on a single GPU since my system has two GPUs
2. allocating S on the GPU.
I could possibly go to C and use the queue and all that stuff but I'm wondering if there is a easier
route programming wise.
Best,
Pedro