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
cddc6338
Unverified
Commit
cddc6338
authored
Jun 07, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jun 07, 2024
Browse files
Merge pull request #4909 from dhiltgen/oneapi_disable
Add ability to skip oneapi generate
parents
385a32ec
ab8c929e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
llm/generate/gen_linux.sh
llm/generate/gen_linux.sh
+1
-1
llm/generate/gen_windows.ps1
llm/generate/gen_windows.ps1
+1
-1
No files found.
llm/generate/gen_linux.sh
View file @
cddc6338
...
@@ -211,7 +211,7 @@ if [ -z "${ONEAPI_ROOT}" ]; then
...
@@ -211,7 +211,7 @@ if [ -z "${ONEAPI_ROOT}" ]; then
ONEAPI_ROOT
=
/opt/intel/oneapi
ONEAPI_ROOT
=
/opt/intel/oneapi
fi
fi
if
[
-d
"
${
ONEAPI_ROOT
}
"
]
;
then
if
[
-z
"
${
OLLAMA_SKIP_ONEAPI_GENERATE
}
"
-a
-d
"
${
ONEAPI_ROOT
}
"
]
;
then
echo
"OneAPI libraries detected - building dynamic OneAPI library"
echo
"OneAPI libraries detected - building dynamic OneAPI library"
init_vars
init_vars
source
${
ONEAPI_ROOT
}
/setvars.sh
--force
# set up environment variables for oneAPI
source
${
ONEAPI_ROOT
}
/setvars.sh
--force
# set up environment variables for oneAPI
...
...
llm/generate/gen_windows.ps1
View file @
cddc6338
...
@@ -290,7 +290,7 @@ function build_cuda() {
...
@@ -290,7 +290,7 @@ function build_cuda() {
}
}
function
build_oneapi
()
{
function
build_oneapi
()
{
if
((
-not
"
${env:OLLAMA_SKIP_
CUDA
_GENERATE}
"
)
-and
(
"
${env:ONEAPI_ROOT}
"
))
{
if
((
-not
"
${env:OLLAMA_SKIP_
ONEAPI
_GENERATE}
"
)
-and
(
"
${env:ONEAPI_ROOT}
"
))
{
# Get oneAPI version
# Get oneAPI version
$
script
:
ONEAPI_VERSION
=
icpx
--version
$
script
:
ONEAPI_VERSION
=
icpx
--version
$
script
:
ONEAPI_VERSION
=
[
regex
]::
Match
(
$
script
:
ONEAPI_VERSION
,
'(?<=oneAPI DPC\+\+/C\+\+ Compiler )(?<version>\d+\.\d+\.\d+)'
)
.
Value
$
script
:
ONEAPI_VERSION
=
[
regex
]::
Match
(
$
script
:
ONEAPI_VERSION
,
'(?<=oneAPI DPC\+\+/C\+\+ Compiler )(?<version>\d+\.\d+\.\d+)'
)
.
Value
...
...
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