+ --opencl-platform)
+ local icd_list=$(ls -1 /etc/OpenCL/vendors/*.icd 2> /dev/null)
+
+ local architecture=$(getconf LONG_BIT 2> /dev/null)
+
+ if [ -z "${architecture}" ]; then
+ return 0
+ fi
+
+ # filter the icd_list (do not show 32 bit on 64bit systems and vice versa)
+
+ if [ "${architecture}" -eq 64 ]; then
+
+ icd_list=$(echo "${icd_list}" | grep -v "32.icd")
+
+ else
+
+ icd_list=$(echo "${icd_list}" | grep -v "64.icd")
+
+ fi
+
+ local number_icds=$(seq 1 $(echo "${icd_list}" | wc -l))
+
+ COMPREPLY=($(compgen -W "${number_icds}" -- ${cur}))
+
+ return 0
+ ;;
+