From 64065e02b063b28748282913ef4d92aaf5ccff8d Mon Sep 17 00:00:00 2001 From: Yan-Ming Li Date: Thu, 5 May 2016 14:49:43 -0500 Subject: [PATCH] [HSA] increase cutoff size to prevent collisions on nearly identical kernels --- lib/hsa/mcwamp_hsa.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/hsa/mcwamp_hsa.cpp b/lib/hsa/mcwamp_hsa.cpp index 0e41cea587b..7489e5ac997 100644 --- a/lib/hsa/mcwamp_hsa.cpp +++ b/lib/hsa/mcwamp_hsa.cpp @@ -77,9 +77,8 @@ #define USE_MD5_HASH (0) // cutoff size used in FNV-1a hash function -// default set as 104, which is the larger value between HSA BrigModuleHeader -// and AMD GCN ISA header (Elf64_Ehdr) from Jack's research -#define FNV1A_CUTOFF_SIZE (104) +// default set as 512 to avoid identical common prefix of kernels +#define FNV1A_CUTOFF_SIZE (512) static const char* getHSAErrorString(hsa_status_t s) {