I need to manage the register memory in fortran. I don´t know how to do it.
I´m have started to program with cuda and I will use this memory in order to set local variables for each thread. I know that using C it is posible, but i do not know how to do it in Fortran.
Here I will show why I need the register variable. If there is another way to do it I will appreciate.
attributes(global) subroutine trotter(N,p,a)
integer :: i,tx,idev
integer, value :: N
complex(8),device :: p(N),a(N,3)
complex(8) :: aux1,aux2 !–> I need this variable to be at each thread
do i=1,9,2 !-> I’m Trying to make this do statement in each thread
!!! I cut the rest of the program but this don´t change anything.
I´m newbie in programing, by this reason perhaps the program is not efficient at all and I don’t know if it is working properly.
Thanks Very much.