mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-15 03:33:42 +02:00
Wrap threadIdx, etc in an inline function
This commit is contained in:
parent
65a619e554
commit
584b92edb0
7 changed files with 21 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue