Skip to content

Commit d97cf4f

Browse files
committed
Fix inlining for event comparison on CUDA
1 parent 2228a16 commit d97cf4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

necsim/core/src/event.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ impl PartialEq for SpeciationEvent {
309309
}
310310

311311
impl Ord for SpeciationEvent {
312+
#[cfg_attr(target_os = "cuda", inline)]
312313
fn cmp(&self, other: &Self) -> Ordering {
313314
// Order `Event`s in lexicographical order:
314315
// (1) event_time different events
@@ -385,6 +386,7 @@ mod tests {
385386
}
386387

387388
impl Ord for DispersalEvent {
389+
#[cfg_attr(target_os = "cuda", inline)]
388390
fn cmp(&self, other: &Self) -> Ordering {
389391
// Order `Event`s in lexicographical order:
390392
// (1) event_time /=\

0 commit comments

Comments
 (0)