forked from intel/ipex-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doc: add download link and script in orca installation. (intel#6750)
* feat: add download orca in installation. * fix: fix wording. * fix: fix typo. * fix: fix wording. * fix: fix link and add scripts. * fix: fix wording. * fix: fix wording. * fix: add empty check for env variables. * fix: fix echo. * fix: update download link * fix: fix style. * fix: fix style. * fix: fix wording and style. * fix: fix style. * fix: fix style. * fix: fix style.
- Loading branch information
1 parent
65c4c2a
commit 620511e
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright 2016 The BigDL Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
set -x | ||
|
||
if [ -z "$BIGDL_VERSION" ]; then | ||
echo "Please specify BIGDL_VERSION, e.g. 2.1.0, 2.2.0-SNAPSHOT." | ||
exit 1 | ||
fi | ||
|
||
echo $BIGDL_VERSION | ||
|
||
if [ -z "$SPARK_VERSION" ]; then | ||
echo "Please specify SPARK_VERSION, e.g. 2.4.6, 3.1.2 and 3.1.3." | ||
exit 1 | ||
fi | ||
|
||
echo $SPARK_VERSION | ||
|
||
if [[ $BIGDL_VERSION == *"SNAPSHOT"* ]]; then | ||
NIGHTLY_VERSION=$(echo $(echo `wget -qO - https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/bigdl/bigdl-assembly-spark_$SPARK_VERSION/$BIGDL_VERSION/maven-metadata.xml | sed -n '/<value>[0-9]*\.[0-9]*\.[0-9]*-[0-9][0-9]*\.[0-9][0-9]*-[0-9][0-9]*.*value>/p' | head -n1 | awk -F'>' '{print $2}' | tr '</value' ' '`)) | ||
wget https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/bigdl/bigdl-assembly-spark_$SPARK_VERSION/$BIGDL_VERSION/bigdl-assembly-spark_$SPARK_VERSION-$NIGHTLY_VERSION-fat-jars.zip | ||
unzip bigdl-assembly-spark_$SPARK_VERSION-$NIGHTLY_VERSION-fat-jars.zip -d $BIGDL_HOME | ||
else | ||
wget https://repo1.maven.org/maven2/com/intel/analytics/bigdl/bigdl-assembly-spark_$SPARK_VERSION/$BIGDL_VERSION/bigdl-assembly-spark_$SPARK_VERSION-$BIGDL_VERSION-fat-jars.zip | ||
unzip bigdl-assembly-spark_$SPARK_VERSION-$BIGDL_VERSION-fat-jars.zip -d $BIGDL_HOME | ||
fi |