From 62d9a63caad9d614a4a4ca90956b38ff623242a5 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sat, 13 Feb 2010 16:20:34 +0100 Subject: added a few tests for event profiling and enums. fixed bug in LocalMemType and Mem enum valueOf(int foo) methods. --- src/com/mbien/opencl/CLDevice.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/mbien/opencl/CLDevice.java') diff --git a/src/com/mbien/opencl/CLDevice.java b/src/com/mbien/opencl/CLDevice.java index d6013166..cd569586 100644 --- a/src/com/mbien/opencl/CLDevice.java +++ b/src/com/mbien/opencl/CLDevice.java @@ -746,9 +746,9 @@ public final class CLDevice { */ public static LocalMemType valueOf(int clLocalCacheType) { if(clLocalCacheType == CL_GLOBAL) - return LOCAL; - else if(clLocalCacheType == CL_LOCAL) return GLOBAL; + else if(clLocalCacheType == CL_LOCAL) + return LOCAL; return null; } -- cgit v1.2.3