summaryrefslogtreecommitdiff
path: root/if_lt.cl
diff options
context:
space:
mode:
Diffstat (limited to 'if_lt.cl')
-rw-r--r--if_lt.cl7
1 files changed, 7 insertions, 0 deletions
diff --git a/if_lt.cl b/if_lt.cl
new file mode 100644
index 0000000..b59c1c9
--- /dev/null
+++ b/if_lt.cl
@@ -0,0 +1,7 @@
+__kernel void if_lt(__global int * out, int arg0, int arg1)
+{
+ out[0] = 0;
+ if (arg0 < arg1) {
+ out[0] = 1;
+ }
+}