Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
please-install
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
atlas
please-install
Commits
96a4cbb0
Commit
96a4cbb0
authored
Mar 21, 2018
by
Matthieu Boileau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add intel-opencl
parent
11d92652
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
intel-opencl/install.sh
intel-opencl/install.sh
+38
-0
No files found.
intel-opencl/install.sh
0 → 100755
View file @
96a4cbb0
#!/bin/bash
# See https://wiki.tiker.net/OpenCLHowTo#Installing_the_Intel_CPU_ICD
set
-x
export
LIB_NAME
=
"intel-opencl"
export
LIB_VERSION
=
"1.2-6.4.0.37"
export
LIB_FULLNAME
=
${
LIB_NAME
}
-
${
LIB_VERSION
}
SUB_DIR
=
${
LIB_NAME
}
/
${
LIB_VERSION
}
WORK_DIR
=
/data/software/sources/
${
SUB_DIR
}
SRC_DIR
=
${
WORK_DIR
}
/
${
LIB_FULLNAME
}
ARCHIVE
=
${
WORK_DIR
}
/opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz
URL
=
"http://registrationcenter-download.intel.com/akdlm/irc_nas/12556/opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz"
export
INSTALL_DIR
=
/data/software/install/
${
SUB_DIR
}
install_lib
()
{
if
[[
!
-f
$ARCHIVE
]]
;
then
mkdir
-p
$WORK_DIR
wget
$URL
-O
$ARCHIVE
fi
if
[[
!
-d
$SRC_DIR
]]
;
then
tar
zxf
$ARCHIVE
--directory
$WORK_DIR
fi
cd
$WORK_DIR
mkdir
-p
"
$INSTALL_DIR
"
rpm2cpio opencl_runtime_16.1.2_x64_rh_
*
/rpm/opencl-
*
-intel-cpu-
*
.x86_64.rpm | cpio
-idmv
cp
./opt/intel/opencl-
*
/lib64/
*
"
$INSTALL_DIR
"
echo
"
$INSTALL_DIR
/libintelocl.so"
>
/etc/OpenCL/vendors/intel.icd
}
install_lib
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