[PATCH 11/90] Random fix for accel driver
authorMichal Babej <michal.babej@tuni.fi>
Tue, 20 Jul 2021 09:19:28 +0000 (12:19 +0300)
committerAndreas Beckmann <anbe@debian.org>
Fri, 7 Jan 2022 23:55:22 +0000 (23:55 +0000)
Accel does not use CPU or LLVM -> remove call to get_llvm_cpu_name()

Gbp-Pq: Name 0011-Random-fix-for-accel-driver.patch

lib/CL/devices/accel/accel.cc

index cc8b5077ccf88a76f296b8b3545e92e6c022e923..e68f9485a11c04f650fb64a1f8b3caeea704fff8 100644 (file)
@@ -567,13 +567,7 @@ unsigned int pocl_accel_probe(struct pocl_device_ops *ops) {
 
 char *pocl_accel_build_hash(cl_device_id /*device*/) {
   char *res = (char *)calloc(1000, sizeof(char));
-#ifdef KERNELLIB_HOST_DISTRO_VARIANTS
-  char *name = get_llvm_cpu_name();
-  snprintf(res, 1000, "accel-%s-%s", HOST_DEVICE_BUILD_HASH, name);
-  POCL_MEM_FREE(name);
-#else
   snprintf(res, 1000, "accel-%s", HOST_DEVICE_BUILD_HASH);
-#endif
   return res;
 }