Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

[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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant