From 306fc8a59a5b9e4b660e6cf504af142a397e1c88 Mon Sep 17 00:00:00 2001 From: jsteube Date: Sat, 12 Nov 2016 21:20:03 +0100 Subject: [PATCH] Optimize unrolling for AMD based on AMDGPU-Pro 16.40 --- OpenCL/inc_vendor.cl | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/OpenCL/inc_vendor.cl b/OpenCL/inc_vendor.cl index a81641eac..fbd03c986 100644 --- a/OpenCL/inc_vendor.cl +++ b/OpenCL/inc_vendor.cl @@ -165,6 +165,27 @@ #ifdef IS_AMD #ifdef IS_GPU +#if KERN_TYPE == 1450 +#undef _unroll +#endif +#if KERN_TYPE == 1460 +#undef _unroll +#endif +#if KERN_TYPE == 1700 +#undef _unroll +#endif +#if KERN_TYPE == 1710 +#undef _unroll +#endif +#if KERN_TYPE == 1720 +#undef _unroll +#endif +#if KERN_TYPE == 1800 +#undef _unroll +#endif +#if KERN_TYPE == 3000 +#undef _unroll +#endif #if KERN_TYPE == 5200 #undef _unroll #endif @@ -192,6 +213,21 @@ #if KERN_TYPE == 8200 #undef _unroll #endif +#if KERN_TYPE == 8900 +#undef _unroll +#endif +#if KERN_TYPE == 10400 +#undef _unroll +#endif +#if KERN_TYPE == 10410 +#undef _unroll +#endif +#if KERN_TYPE == 10700 +#undef _unroll +#endif +#if KERN_TYPE == 10800 +#undef _unroll +#endif #if KERN_TYPE == 10900 #undef _unroll #endif @@ -210,6 +246,15 @@ #if KERN_TYPE == 13723 #undef _unroll #endif +#if KERN_TYPE == 13800 +#undef _unroll +#endif +#if KERN_TYPE == 14000 +#undef _unroll +#endif +#if KERN_TYPE == 14100 +#undef _unroll +#endif #endif #endif