[cig-commits] [commit] devel: enable MANUALLY UNROLL LOOPS by default (d08fd18)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Thu May 15 15:56:02 PDT 2014
Repository : https://github.com/geodynamics/specfem3d_globe
On branch : devel
Link : https://github.com/geodynamics/specfem3d_globe/compare/f2189843b45ae850da30e7a2f870e7c7a590f993...6acd7dc85c5d44360a32125f46ea3abb864fbe5e
>---------------------------------------------------------------
commit d08fd1836da35b2e6ed2a562b800dd749c3fd999
Author: Kevin Pouget <kevin.pouget at imag.fr>
Date: Wed May 14 10:44:12 2014 +0200
enable MANUALLY UNROLL LOOPS by default
>---------------------------------------------------------------
d08fd1836da35b2e6ed2a562b800dd749c3fd999
src/gpu/mesh_constants_gpu.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gpu/mesh_constants_gpu.h b/src/gpu/mesh_constants_gpu.h
index 246bcb4..7bf176c 100644
--- a/src/gpu/mesh_constants_gpu.h
+++ b/src/gpu/mesh_constants_gpu.h
@@ -207,8 +207,8 @@ typedef float realw;
#endif
// (optional) unrolling loops
-// leads up to ~1% performance increase
-//#define MANUALLY_UNROLLED_LOOPS
+// leads up to ~10% performance increase in OpenCL and ~1% in Cuda
+#define MANUALLY_UNROLLED_LOOPS
// compiler specifications
// (optional) use launch_bounds specification to increase compiler optimization
More information about the CIG-COMMITS
mailing list