Skip to content
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

[Experimental] Enabled the use of the enhanced JIT Compiler (AbstractTensor.lisp) #155

Merged
merged 15 commits into from
Jun 3, 2024

Conversation

hikettei
Copy link
Owner

@hikettei hikettei commented Jun 3, 2024

Changes

  • New backend: aten, aten[clang]
    • It entirely relies on the tiny JIT Compiler (called AbstractTensor.lisp)
      • It is tiny and easy to write a new backend.
      • It optimises the kernel, especially where memory bandwidth is an overhead. (Conv2d gets approximately 10 times faster on CPU.)
      • This method (could be) extended to GPU architectures.
      • (WIP) It unrolls/vectorizes the kernel, enabling SLEEF/Neon/AVX intrinsics.
      • (TBD) data-parallel computation using OpenMP.
    • Now it supports basic operations including arithmetic ops and mathematical ops (not tested).
    • (TODO) Implement Gemm/Im2Col/Winograd etc.
  • Removed a JITCPUTensor backend.
  • Fixed a bug related to the VM execution model. %vm-move ignores the broadcast. (resulting the shape error.)

Usage

e.g.:

(with-devices ((Aten[Clang] :debug 1 :opt 3) CPUTensor)
    ....)
$ ./roswell/waffe2.ros test -b "Aten[Clang]" -b LispTensor -b CPUTensor

Workload

  • Add more optimisation techniques to AbstractTensor.lisp!
  • Export to C mode.

@hikettei hikettei merged commit 0d532bb into develop Jun 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant