b3d035b1dc
Update the packaging code to be CMake 3.5 compatible for CI. Create two packages rocm-opencl and rocm-opencl-dev on Ubuntu and CentOS. Add proper versioning into naming. Change-Id: I116081b7f6f7efa4be43ab3a66e4d3bff0589298
21 lines
355 B
Bash
21 lines
355 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
do_ldconfig() {
|
|
echo /opt/rocm/opencl/lib > /etc/ld.so.conf.d/x86_64-rocm-opencl.conf && ldconfig
|
|
mkdir -p /etc/OpenCL/vendors && (echo libamdocl64.so > /etc/OpenCL/vendors/amdocl64.icd)
|
|
}
|
|
|
|
case "$1" in
|
|
abort-deconfigure|abort-remove|abort-upgrade)
|
|
echo "$1"
|
|
;;
|
|
configure)
|
|
do_ldconfig
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|