Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
2619850f
Unverified
Commit
2619850f
authored
Apr 26, 2024
by
Daniel Hiltgen
Committed by
GitHub
Apr 26, 2024
Browse files
Merge pull request #3933 from dhiltgen/ci_fixes
Move cuda/rocm dependency gathering into generate script
parents
4e1ff6dc
8feb97dc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
20 deletions
+15
-20
.github/workflows/release.yaml
.github/workflows/release.yaml
+0
-2
app/ollama.iss
app/ollama.iss
+2
-6
llm/generate/gen_windows.ps1
llm/generate/gen_windows.ps1
+13
-0
scripts/build_windows.ps1
scripts/build_windows.ps1
+0
-12
No files found.
.github/workflows/release.yaml
View file @
2619850f
...
@@ -331,8 +331,6 @@ jobs:
...
@@ -331,8 +331,6 @@ jobs:
$env:CMAKE_SYSTEM_VERSION="10.0.22621.0"
$env:CMAKE_SYSTEM_VERSION="10.0.22621.0"
$env:PATH="$gopath;$env:PATH"
$env:PATH="$gopath;$env:PATH"
$env:OLLAMA_SKIP_GENERATE="1"
$env:OLLAMA_SKIP_GENERATE="1"
$env:NVIDIA_DIR=$(resolve-path ".\dist\deps")
$env:HIP_PATH=$(resolve-path ".\dist\deps")
& .\scripts\build_windows.ps1
& .\scripts\build_windows.ps1
-
uses
:
actions/upload-artifact@v4
-
uses
:
actions/upload-artifact@v4
with
:
with
:
...
...
app/ollama.iss
View file @
2619850f
...
@@ -92,12 +92,8 @@ Source: "..\dist\windows-amd64\*.dll"; DestDir: "{app}"; Flags: ignoreversion 64
...
@@ -92,12 +92,8 @@ Source: "..\dist\windows-amd64\*.dll"; DestDir: "{app}"; Flags: ignoreversion 64
Source: "..\dist\windows-amd64\ollama_runners\*"; DestDir: "{app}\ollama_runners"; Flags: ignoreversion 64bit recursesubdirs
Source: "..\dist\windows-amd64\ollama_runners\*"; DestDir: "{app}\ollama_runners"; Flags: ignoreversion 64bit recursesubdirs
Source: "..\dist\ollama_welcome.ps1"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\dist\ollama_welcome.ps1"; DestDir: "{app}"; Flags: ignoreversion
Source: ".\assets\app.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: ".\assets\app.ico"; DestDir: "{app}"; Flags: ignoreversion
; Assumes v5.7, may need adjustments for v6
#if DirExists("..\dist\windows-amd64\rocm")
#if GetEnv("HIP_PATH") != ""
Source: "..\dist\windows-amd64\rocm\*"; DestDir: "{app}\rocm\"; Flags: ignoreversion recursesubdirs
Source: "{#GetEnv('HIP_PATH')}\bin\hipblas.dll"; DestDir: "{app}\rocm\"; Flags: ignoreversion
Source: "{#GetEnv('HIP_PATH')}\bin\rocblas.dll"; DestDir: "{app}\rocm\"; Flags: ignoreversion
; amdhip64.dll dependency comes from the driver and must be installed already
Source: "{#GetEnv('HIP_PATH')}\bin\rocblas\library\*"; DestDir: "{app}\rocm\rocblas\library\"; Flags: ignoreversion
#endif
#endif
...
...
llm/generate/gen_windows.ps1
View file @
2619850f
...
@@ -252,6 +252,11 @@ if ($null -ne $script:CUDA_LIB_DIR) {
...
@@ -252,6 +252,11 @@ if ($null -ne $script:CUDA_LIB_DIR) {
build
build
sign
sign
install
install
write-host
"copying CUDA dependencies to
${script:SRC_DIR}
\dist\windows-
${script:ARCH}
\"
cp
"
${script:CUDA_LIB_DIR}
\cudart64_*.dll"
"
${script:SRC_DIR}
\dist\windows-
${script:ARCH}
\"
cp
"
${script:CUDA_LIB_DIR}
\cublas64_*.dll"
"
${script:SRC_DIR}
\dist\windows-
${script:ARCH}
\"
cp
"
${script:CUDA_LIB_DIR}
\cublasLt64_*.dll"
"
${script:SRC_DIR}
\dist\windows-
${script:ARCH}
\"
}
}
if
(
$null
-ne
$
env
:
HIP_PATH
)
{
if
(
$null
-ne
$
env
:
HIP_PATH
)
{
...
@@ -295,6 +300,14 @@ if ($null -ne $env:HIP_PATH) {
...
@@ -295,6 +300,14 @@ if ($null -ne $env:HIP_PATH) {
}
}
sign
sign
install
install
# Assumes v5.7, may need adjustments for v6
rm -ea 0 -recurse -force -path "
${script:SRC_DIR}
\dist\windows-
${script:ARCH}
\rocm\
"
md "
${script:SRC_DIR}
\dist\windows-
${script:ARCH}
\rocm\rocblas\library\
" -ea 0 >
$null
cp "
${env:HIP_PATH}
\bin\hipblas.dll
" "
${script:SRC_DIR}
\dist\windows-
${script:ARCH}
\rocm\
"
cp "
${env:HIP_PATH}
\bin\rocblas.dll
" "
${script:SRC_DIR}
\dist\windows-
${script:ARCH}
\rocm\
"
# amdhip64.dll dependency comes from the driver and must be installed on the host to use AMD GPUs
cp "
${env:HIP_PATH}
\bin\rocblas\library\*
" "
${script:SRC_DIR}
\dist\windows-
${script:ARCH}
\rocm\rocblas\library\
"
}
}
...
...
scripts/build_windows.ps1
View file @
2619850f
...
@@ -109,9 +109,6 @@ function gatherDependencies() {
...
@@ -109,9 +109,6 @@ function gatherDependencies() {
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\vcruntime140.dll"
"
${script:DEPS_DIR}
\"
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\vcruntime140.dll"
"
${script:DEPS_DIR}
\"
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\vcruntime140_1.dll"
"
${script:DEPS_DIR}
\"
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\vcruntime140_1.dll"
"
${script:DEPS_DIR}
\"
cp
"
${script:NVIDIA_DIR}
\cudart64_*.dll"
"
${script:DEPS_DIR}
\"
cp
"
${script:NVIDIA_DIR}
\cublas64_*.dll"
"
${script:DEPS_DIR}
\"
cp
"
${script:NVIDIA_DIR}
\cublasLt64_*.dll"
"
${script:DEPS_DIR}
\"
cp
"
${script:SRC_DIR}
\app\ollama_welcome.ps1"
"
${script:SRC_DIR}
\dist\"
cp
"
${script:SRC_DIR}
\app\ollama_welcome.ps1"
"
${script:SRC_DIR}
\dist\"
if
(
"
${env:KEY_CONTAINER}
"
)
{
if
(
"
${env:KEY_CONTAINER}
"
)
{
...
@@ -123,15 +120,6 @@ function gatherDependencies() {
...
@@ -123,15 +120,6 @@ function gatherDependencies() {
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
}
}
}
}
if
(
$null
-ne
$
env
:
HIP_PATH
)
{
# Assumes v5.7, may need adjustments for v6
rm
-ea
0
-recurse
-force
-path
"
${script:DEPS_DIR}
\rocm\"
md
"
${script:DEPS_DIR}
\rocm\rocblas\library\"
-ea
0
>
$null
cp
"
${env:HIP_PATH}
\bin\hipblas.dll"
"
${script:DEPS_DIR}
\rocm\"
cp
"
${env:HIP_PATH}
\bin\rocblas.dll"
"
${script:DEPS_DIR}
\rocm\"
# amdhip64.dll dependency comes from the driver and must be installed on the host to use AMD GPUs
cp
"
${env:HIP_PATH}
\bin\rocblas\library\*"
"
${script:DEPS_DIR}
\rocm\rocblas\library\"
}
}
}
function
buildInstaller
()
{
function
buildInstaller
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment