mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
* faster general unary op * faster general ops + reorg * fix + comment * binary two * copy general
16 lines
426 B
Plaintext
16 lines
426 B
Plaintext
// Copyright © 2025 Apple Inc.
|
|
|
|
#include "mlx/backend/cuda/binary/binary.cuh"
|
|
|
|
namespace mlx::core {
|
|
void Equal::eval_gpu(const std::vector<array>& inputs, array& out) {
|
|
nvtx3::scoped_range r("Equal::eval_gpu");
|
|
auto& s = out.primitive().stream();
|
|
if (equal_nan_) {
|
|
binary_op_gpu<cu::NaNEqual>(inputs, out, name(), s);
|
|
} else {
|
|
binary_op_gpu<cu::Equal>(inputs, out, name(), s);
|
|
}
|
|
}
|
|
} // namespace mlx::core
|