Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
make the code compatible with CUDA 12.3 (#16)
Browse files Browse the repository at this point in the history
# What ❔

This code implements the changes necessary to make it compile with CUDA
12.3.

## Why ❔

CUDA 12.3 introduced a new `CudaLaunchAttributeID` named
`LaunchCompletionEvent`, a default match arm is needed to make the code
compile with CUDA 12.3 but also previous CUDA versions.

## Checklist
- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
robik75 authored Oct 23, 2023
1 parent ecf246a commit e3f708d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cudart/src/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ impl CudaLaunchAttribute {
Self::MemSyncDomainMap(value.memSyncDomainMap)
}
CudaLaunchAttributeID::MemSyncDomain => Self::MemSyncDomain(value.memSyncDomain),
#[allow(unreachable_patterns)]
_ => unimplemented!("Unsupported CudaLaunchAttributeID"),
}
}
}
Expand Down

0 comments on commit e3f708d

Please sign in to comment.