Wrap threadIdx, etc in an inline function

This commit is contained in:
Alberto Ramos 2022-01-05 20:04:55 +01:00
parent 65a619e554
commit 584b92edb0
7 changed files with 21 additions and 18 deletions

View file

@ -333,7 +333,10 @@ Returns the sum of the cartesian coordinates of the point p=(b,r).
return s
end
export up, dw, updw, point_index, point_coord, point_time
@inline assign_thx() = convert(Int64, CUDA.threadIdx().x), convert(Int64, CUDA.blockIdx().x)
export up, dw, updw, point_index, point_coord, point_time, assign_thx
export BC_PERIODIC, BC_OPEN, BC_SF_AFWB, BC_SF_ORBI
end