Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/cunumeric_jl_wrapper/src/wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ JLCXX_MODULE define_julia_module(jlcxx::Module& mod) {
using jlcxx::TypeVar;
using legate_util::HalfType;

// Map C++ complex types to Julia complex types
mod.map_type<std::complex<double>>("ComplexF64");
mod.map_type<std::complex<float>>("ComplexF32");
mod.map_type<HalfType>("Float16");

// These are the types/dims used to generate templated functions
Expand Down
12 changes: 12 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ include("tests/binary_tests.jl")
include("tests/scoping.jl")
include("tests/scoping-advanced.jl")

@testset "Array Accessors" begin
for T in Base.uniontypes(cuNumeric.SUPPORTED_ARRAY_TYPES)
value = rand(T)
arr = cuNumeric.zeros(T, 2, 2)

allowscalar() do
arr[1, 2] = value
@test arr[1, 2] == value
end
end
end

@testset verbose = true "AXPY" begin
N = 100
@testset verbose = true for T in Base.uniontypes(cuNumeric.SUPPORTED_FLOAT_TYPES)
Expand Down
Loading