bhelfer / RustBCL

BCL in Rust
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

Atomic operations on shmem #3

Open SKYSCRAPERS1999 opened 5 years ago

SKYSCRAPERS1999 commented 5 years ago
pub fn shmem_int_cswap(target: *mut c_int, cond: c_int, value: c_int,
 pe: c_int) -> c_int;

pub fn shmem_long_cswap(target: *mut c_long, cond: c_long, 
value: c_long, pe: c_int) -> c_long;

pub fn shmem_int_finc(target: *mut c_int, pe: c_int) -> c_int;

According to me, the first function leads to stack errors, while the other 2 functions are usable.

SKYSCRAPERS1999 commented 5 years ago

Maybe it has something to do with 64 bit systems.