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
36fdd095
Commit
36fdd095
authored
5 years ago
by
Adel Ejjeh
Browse files
Options
Downloads
Patches
Plain Diff
Fixing visc-rt makefile and installer script
parent
5cc1435d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hpvm/llvm_installer/llvm_installer.sh
+22
-24
22 additions, 24 deletions
hpvm/llvm_installer/llvm_installer.sh
hpvm/projects/visc-rt/makefile
+3
-4
3 additions, 4 deletions
hpvm/projects/visc-rt/makefile
with
25 additions
and
28 deletions
hpvm/llvm_installer/llvm_installer.sh
+
22
−
24
View file @
36fdd095
...
...
@@ -147,14 +147,12 @@ else
fi
HPVM_DIR
=
$CURRENT_DIR
/
$LLVM_SRC
/tools/hpvm
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
/
mkdir
-p
$HPVM_DIR
ln
-s
$CURRENT_DIR
/CMakeLists.txt
$HPVM_DIR
ln
-s
$CURRENT_DIR
/include
$HPVM_DIR
/
ln
-s
$CURRENT_DIR
/lib
$HPVM_DIR
/
ln
-s
$CURRENT_DIR
/projects
$HPVM_DIR
/
ln
-s
$CURRENT_DIR
/test
$HPVM_DIR
/
ls
$HPVM_DIR
...
...
@@ -170,31 +168,31 @@ echo Patches applied.
echo
Now building...
if
[
-d
$BUILD_DIR
]
;
then
cd
$BUILD_DIR
echo
Found
$BUILD_DIR
.
else
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_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
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_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
echo
make
-j
$NUM_THREADS
make
-j
$NUM_THREADS
#make install
echo
Building HPVM runtime
HPVM_RT_DIR
=
$HPVM_DIR
/projects/visc-rt
cd
$HPVM_RT_DIR
make
#cp -r $CURRENT_DIR/projects $HPVM_DIR/
#make -j$NUM_THREADS
if
[
-x
$INSTALL_DIR
/bin/clang
]
;
then
true
else
echo
LLVM not installed properly.
exit
0
fi
#
if [ -x $INSTALL_DIR/bin/clang ]; then
#
true
#
else
#
echo LLVM not installed properly.
#
exit 0
#
fi
cd
$CURRENT_DIR
...
...
This diff is collapsed.
Click to expand it.
hpvm/projects/visc-rt/makefile
+
3
−
4
View file @
36fdd095
#LLVM_SRC_ROOT =
../../../llvm
#LLVM_SRC_ROOT =
LLVM_BUILD_ROOT
=
${
LLVM_SRC_ROOT
}
/../build/
OPENCL_INC_PATH
=
/opt/intel/opencl-sdk/include
CUDA_INC_PATH
=
/software/cuda-9.1/include/CL/
ifeq
($(NUM_CORES),)
NUM_CORES
=
8
NUM_CORES
=
1
endif
CPP_FLAGS
=
-I
$(
LLVM_SRC_ROOT
)
/include
-I
$(
LLVM_BUILD_ROOT
)
/include
-I
$(
OPENCL_INC_PATH
)
-I
$(
CUDA_INC_PATH
)
-std
=
c++11
-D__STDC_CONSTANT_MACROS
-D__STDC_LIMIT_MACROS
CPP_FLAGS
=
-I
$(
LLVM_SRC_ROOT
)
/include
-I
$(
LLVM_BUILD_ROOT
)
/include
-I
$(
CUDA_INC_PATH
)
-std
=
c++11
-D__STDC_CONSTANT_MACROS
-D__STDC_LIMIT_MACROS
TARGET
:=
visc-rt
LLVM_CC
:=
$(
LLVM_BUILD_ROOT
)
/bin/clang
...
...
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