Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
hpvm-release
Commits
1517f3c2
Commit
1517f3c2
authored
5 years ago
by
Adel Ejjeh
Browse files
Options
Downloads
Patches
Plain Diff
Making small changes to installer to improve usability
parent
5ec48be0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/llvm_installer/llvm_installer.sh
+23
-9
23 additions, 9 deletions
hpvm/llvm_installer/llvm_installer.sh
with
23 additions
and
9 deletions
hpvm/llvm_installer/llvm_installer.sh
+
23
−
9
View file @
1517f3c2
...
...
@@ -28,6 +28,8 @@ CLANG_TOOLS_SRC="clang-tools-extra-$VERSION.src"
if
[
-d
$LLVM_SRC
]
;
then
echo
Found
$LLVM_SRC
!
elif
[
-d
llvm
]
;
then
echo
Found llvm, not downloading
$LLVM_SRC
!
else
echo
$WGET
$URL
/
$VERSION
/
$LLVM_SRC$SUFFIX
$WGET
$URL
/
$VERSION
/
$LLVM_SRC$SUFFIX
...
...
@@ -37,6 +39,8 @@ fi
if
[
-d
$LLVM_SRC
]
;
then
echo
Everything looks sane.
mv
$LLVM_SRC
llvm
elif
[
-d
llvm
]
;
then
echo
Everything looks sane.
else
echo
Install had problems. Quitting.
exit
...
...
@@ -135,29 +139,37 @@ if [ $LLD_SRC != "" ]; then
fi
fi
mkdir
$CURRENT_DIR
/
$LLVM_SRC
/tools/hpvm
echo
Adding HPVM sources to tree
if
[
-d
$CURRENT_DIR
/
$LLVM_SRC
/tools/hpvm
]
;
then
mkdir
$CURRENT_DIR
/
$LLVM_SRC
/tools/hpvm
else
echo
$CURRENT_DIR
/
$LLVM_SRC
/tools/hpvm exists.
fi
HPVM_DIR
=
$CURRENT_DIR
/
$LLVM_SRC
/tools/hpvm
cp
$CURRENT_DIR
/CMakeLists.txt
$HPVM_DIR
cp
-r
$CURRENT_DIR
/include
$HPVM_DIR
/
cp
-r
$CURRENT_DIR
/lib
$HPVM_DIR
/
cp
-r
$CURRENT_DIR
/projects
$HPVM_DIR
/
#rm -r $HPVM_DIR/projects/llvm-cbe
cp
-r
$CURRENT_DIR
/test
$HPVM_DIR
/
cp
-ruv
$CURRENT_DIR
/CMakeLists.txt
$HPVM_DIR
cp
-ruv
$CURRENT_DIR
/CMakeLists.txt
$HPVM_DIR
cp
-ruv
$CURRENT_DIR
/include
$HPVM_DIR
/
cp
-ruv
$CURRENT_DIR
/include
$HPVM_DIR
/
cp
-ruv
$CURRENT_DIR
/lib
$HPVM_DIR
/
cp
-ruv
$CURRENT_DIR
/projects
$HPVM_DIR
/
cp
-ruv
$CURRENT_DIR
/test
$HPVM_DIR
/
ls
$HPVM_DIR
export
LLVM_SRC_ROOT
=
$CURRENT_DIR
/
$LLVM_SRC
echo
${
LLVM_SRC_ROOT
}
echo
Applying HPVM patches
cd
$CURRENT_DIR
/llvm_patches
/bin/bash ./construct_patch.sh
/bin/bash ./apply_patch.sh
echo
Patches applied.
echo
Now building...
if
[
-d
$BUILD_DIR
]
;
then
cd
$BUILD_DIR
echo
Found
$BUILD_DIR
.
...
...
@@ -165,9 +177,11 @@ else
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_DIR
cmake ../
$LLVM_SRC
-DCMAKE_C_COMPILER
=
gcc
-DCMAKE_CXX_COMPILER
=
g++
-DLLVM_TARGETS_TO_BUILD
=
"X86;NVPTX"
-DCMAKE_INSTALL_PREFIX
=
$INSTALL_DIR
echo
cmake ../
$LLVM_SRC
-DCMAKE_C_COMPILER
=
gcc
-DCMAKE_CXX_COMPILER
=
g++
-DLLVM_TARGETS_TO_BUILD
=
"X86"
-DCMAKE_INSTALL_PREFIX
=
$INSTALL_DIR
cmake ../
$LLVM_SRC
-DCMAKE_C_COMPILER
=
gcc
-DCMAKE_CXX_COMPILER
=
g++
-DLLVM_TARGETS_TO_BUILD
=
"X86"
-DCMAKE_INSTALL_PREFIX
=
$INSTALL_DIR
fi
echo
make
-j
$NUM_THREADS
make
-j
$NUM_THREADS
#make install
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment