Skip to content

Use same Node class for all backends #2891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 20, 2020
Merged

Conversation

umar456
Copy link
Member

@umar456 umar456 commented May 19, 2020

The CPU backend was using a slightly modified version of the Node class. This PR modifies the CPU backend to use the same class as the other backends. This will allow us to move to LLVM based JIT in the future and provide a unified interface for all backends.

Additional clang-tidy changes. Removed several using namespace statements in the source. Reorganized the namespaces for several functions.

Moved the Binary and Transform classes form src/api/c/ops.hpp to src/backend/common/[Binary,Transform].hpp.

@umar456 umar456 added this to the 3.7.2 milestone May 19, 2020
@umar456 umar456 force-pushed the jit_refactor branch 7 times, most recently from 68664d0 to 00c6c3a Compare May 20, 2020 03:54
umar456 added 3 commits May 20, 2020 02:27
* Remove backend specific cpu::jit::Node and use common::Node as a
  base class for all backends.
* Remove std::string for types in the node class in favor of
  the enum af::dtype.
* Remove UnaryOp's default implementation
@9prady9 9prady9 merged commit 2d1920d into arrayfire:master May 20, 2020
@umar456 umar456 deleted the jit_refactor branch June 26, 2020 18:37
@umar456 umar456 mentioned this pull request Jun 27, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants