Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/emlx_axon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,25 @@ jobs:

- name: Install emlx_axon dependencies
working-directory: emlx_axon
env:
EMLX_AXON_LOCAL_EMLX: "true"
run: |
export PATH="${{ steps.setup.outputs.path }}:${PATH}"
rm -rf deps/emlx _build/dev/lib/emlx _build/test/lib/emlx
mix deps.get

- name: Check formatting
working-directory: emlx_axon
env:
EMLX_AXON_LOCAL_EMLX: "true"
run: |
export PATH="${{ steps.setup.outputs.path }}:${PATH}"
mix format --check-formatted

- name: Run emlx_axon tests
working-directory: emlx_axon
env:
EMLX_AXON_LOCAL_EMLX: "true"
EMLX_TEST_DEFAULT_GPU: "true"
run: |
export PATH="${{ steps.setup.outputs.path }}:${PATH}"
Expand Down
6 changes: 3 additions & 3 deletions emlx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ esc = $(subst $(space),\$(space),$(1))

# Private configuration
PRIV_DIR = $(MIX_APP_PATH)/priv
BUILD_DIR = $(EMLX_CACHE_DIR)/emlx-$(EMLX_VERSION)-mlx-$(MLX_VERSION)$(MLX_VARIANT)/objs
BUILD_DIR = $(EMLX_CACHE_DIR)/emlx-$(EMLX_VERSION)-mlx-$(MLX_VERSION)$(MLX_VARIANT)-$(EMLX_NATIVE_SOURCE_HASH)/objs
EMLX_SO = $(PRIV_DIR)/libemlx.so
EMLX_LIB_DIR = $(PRIV_DIR)/mlx/lib
# Headers are copied alongside the lib (unlike the lib copy, these are not
Expand Down Expand Up @@ -55,8 +55,8 @@ endif
MAKE_JOBS ?= $(MAKE_DEFAULT_JOBS)

# Source files
SOURCES = c_src/emlx_nif.cpp c_src/emlx_fast.cpp c_src/emlx_fast/qwen3.cpp c_src/emlx_compiler.cpp c_src/emlx_plugin_registry.cpp
HEADERS = c_src/nx_nif_utils.hpp c_src/emlx_worker.hpp c_src/emlx_async.hpp c_src/emlx_nif_shared.hpp c_src/emlx_plugin_registry.hpp c_src/emlx_fast/qwen3.hpp c_src/emlx_fast/qwen3_plugin_abi.hpp c_src/emlx_compiler.hpp c_src/emlx_runtime_call_bridge.hpp
SOURCES = c_src/emlx_nif.cpp c_src/emlx_fast.cpp c_src/emlx_fast/qwen3.cpp c_src/emlx_fast/llama.cpp c_src/emlx_compiler.cpp c_src/emlx_plugin_registry.cpp
HEADERS = c_src/nx_nif_utils.hpp c_src/emlx_worker.hpp c_src/emlx_async.hpp c_src/emlx_nif_shared.hpp c_src/emlx_plugin_registry.hpp c_src/emlx_fast/qwen3.hpp c_src/emlx_fast/qwen3_plugin_abi.hpp c_src/emlx_fast/llama.hpp c_src/emlx_fast/llama_plugin_abi.hpp c_src/emlx_compiler.hpp c_src/emlx_runtime_call_bridge.hpp
OBJECTS = $(patsubst c_src/%.cpp,$(call esc,$(BUILD_DIR))/%.o,$(SOURCES))

# Main targets
Expand Down
Loading
Loading