Skip to content

Commit 3f6e598

Browse files
authored
Update to ExaModels 0.9 (#13)
1 parent 55ce24e commit 3f6e598

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ BNKChainRulesCore = "ChainRulesCore"
1616
BNKJuMP = "JuMP"
1717

1818
[compat]
19-
ExaModels = "0.8.3"
19+
ExaModels = "0.9"
2020

2121
[extras]
2222
AcceleratedKernels = "6a4ca0a5-0e36-4168-a932-d9be78d558f1"

test/runtests.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ using CUDA
2424
using Random
2525
import GPUArraysCore: @allowscalar
2626

27-
ExaModels.convert_array(x, ::OpenCLBackend) = CLArray(x)
28-
ExaModels.sort!(array::CLArray; lt = isless) = AcceleratedKernels.sort!(array; lt=lt)
29-
function Base.findall(f::F, bitarray::CLArray) where {F<:Function}
30-
a = Array(bitarray)
31-
b = findall(f, a)
32-
c = similar(bitarray, eltype(b), length(b))
33-
return copyto!(c, b)
34-
end
35-
Base.findall(bitarray::CLArray) = Base.findall(identity, bitarray)
3627

3728
if haskey(ENV, "BNK_TEST_CUDA")
3829
@info "CUDA detected"

0 commit comments

Comments
 (0)