Skip to content

Commit 1fa1e1a

Browse files
authored
Enable CPU atomics (#305)
1 parent d795583 commit 1fa1e1a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1212
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1313
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1414
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
15+
UnsafeAtomicsLLVM = "d80eeb9a-aca5-4d75-85e5-170c8b632249"
1516

1617
[compat]
1718
Adapt = "0.4, 1.0, 2.0, 3.0"
1819
Atomix = "0.1"
1920
MacroTools = "0.5"
2021
StaticArrays = "0.12, 1.0"
2122
julia = "1.7"
23+
UnsafeAtomicsLLVM = "0.1"

lib/ROCKernels/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ Adapt = "3.0"
1616
KernelAbstractions = "0.8"
1717
StaticArrays = "0.12, 1.0"
1818
julia = "1.7"
19+
UnsafeAtomicsLLVM = "0.1"

src/cpu.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import UnsafeAtomicsLLVM
2+
13
struct CPUEvent <: Event
24
task::Core.Task
35
end

0 commit comments

Comments
 (0)