You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inconsistent behavior between == and isequal for CuArray
To reproduce
The Minimal Working Example (MWE) for this bug:
using CUDA: CuArray
import CUDA
CUDA.allowscalar(false)
x =ones(2,3)
y =ones(6)
xc =CuArray(x)
yc =CuArray(y)
@assert!isequal(x, y)
@assert x !== y
@assert!isequal(xc, yc)
@assert xc == yc # huh?
Manifest.toml
CUDA v3.10.0
Julia 1.7.1
Paste your Manifest.toml here, or accurately describe which version of CUDA.jl and its dependencies (GPUArrays.jl, GPUCompiler.jl, LLVM.jl) you are using.
Expected behavior
I expect two arrays of different dimensions to fail both isequal and ==.
Regular arrays have that property, so should CuArrays, right?
Version info
Details on Julia:
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cascadelake)
Environment:
JULIA_NUM_THREADS = 48
Describe the bug
Inconsistent behavior between
==
andisequal
forCuArray
To reproduce
The Minimal Working Example (MWE) for this bug:
Manifest.toml
CUDA v3.10.0
Julia 1.7.1
Expected behavior
I expect two arrays of different dimensions to fail both
isequal
and==
.Regular arrays have that property, so should
CuArray
s, right?Version info
Details on Julia:
Details on CUDA:
Additional context
I am writing unit tests for another package to make it CUDA compatible
JeffFessler/LinearMapsAA.jl#43
The text was updated successfully, but these errors were encountered: