Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willow-ahrens committed Nov 8, 2024
1 parent 34dd1e2 commit e365483
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6.7'
- '1.10.6'
- '1'
os:
- ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ TOML = "1.0"
TensorMarket = "0.2"
UUIDs = "1.4"
UnsafeAtomics = "0.2.1"
julia = "1.6.7"
julia = "1.10"

[extras]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Expand Down
1 change: 1 addition & 0 deletions src/FinchNotation/syntax.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ struct InitWriter{Vf} end

(f::InitWriter{Vf})(x) where {Vf} = x
function (f::InitWriter{Vf})(x, y) where {Vf}
(x, y) = promote(x, y)
@debug begin
@assert isequal(x, Vf)
end
Expand Down
4 changes: 2 additions & 2 deletions src/architecture.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ function moveto(vec::CPULocalVector, task::CPUThread)
return temp
end

function atomic_modify!(::Serial, vec, idx, op, x)
@propagate_inbounds function atomic_modify!(::Serial, vec, idx, op, x)
@inbounds begin
vec[idx] = op(vec[idx], x)
end
end

function atomic_modify!(::CPU, vec, idx, op, x)
@propagate_inbounds function atomic_modify!(::CPU, vec, idx, op, x)
Base.unsafe_modify!(pointer(vec, idx), op, x, :sequentially_consistent)
end

Expand Down

0 comments on commit e365483

Please sign in to comment.