Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

Fix MKL by installing necessary libraries (#776)

Neptune8bbb6c99334f
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 8382f7cf4..2e13339af 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -93,7 +93,7 @@ jobs:
target: x86_64-apple-darwin
tauri-args: "--target x86_64-apple-darwin"
- platform: [self-hosted, Windows, X64] # Windows x86_64
- args: "--target x86_64-pc-windows-msvc" # TODO CUDA --features "openblas"
+ args: "--target x86_64-pc-windows-msvc --features mkl" # TODO CUDA --features "openblas"
pre-build-args: "" # --openblas
tauri-args: "--target x86_64-pc-windows-msvc"
@@ -173,7 +173,7 @@ jobs:
- name: Install dependencies
if: matrix.platform == 'macos-latest'
run: |
- brew install ffmpeg
+ brew install ffmpeg
- name: Install frontend dependencies
shell: bash
@@ -228,12 +228,13 @@ jobs:
bun ./scripts/pre_build.js ${{ matrix.pre-build-args }}
working-directory: ./screenpipe-app-tauri
- # - name: Copy library for MKL
- # if: matrix.tauri-args == '--target x86_64-pc-windows-msvc'
- # run: |
- # $iomp_path = Get-ChildItem -Path . -Filter libiomp5md.dll -Recurse -ErrorAction SilentlyContinue -Force | % { $_.fullname }
- # mkdir screenpipe-app-tauri/src-tauri/mkl/
- # cp $iomp_path screenpipe-app-tauri/src-tauri/mkl/
+ - name: Copy library for MKL
+ if: matrix.tauri-args == '--target x86_64-pc-windows-msvc'
+ run: |
+ mkdir omp
+ pip install intel-openmp --target omp
+ mkdir screenpipe-app-tauri/src-tauri/mkl/
+ ls -Path ./omp -Recurse -Filter *.dll | cp -Destination screenpipe-app-tauri/src-tauri/mkl/
- name: Build
uses: tauri-apps/tauri-action@v0
diff --git a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
index a629b6a77..f12d49936 100644
--- a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
+++ b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
@@ -13,7 +13,8 @@
"onnxruntime*\\lib\\onnxruntime.dll": "./",
"onnxruntime*\\lib\\onnxruntime_providers_cuda.dll": "./",
"onnxruntime*\\lib\\onnxruntime_providers_shared.dll": "./",
- "lib\\ollama\\*": "./"
+ "lib\\ollama\\*": "./",
+ "mkl\\*.dll": "./"
}
}
}