[Libclc-dev] [PATCH] Add declarations for workitem and synchronization functions

Tom Stellard tstellar at gmail.com
Fri Jun 1 06:10:57 PDT 2012


---
 generic/include/clc/synchronization/barrier.h |    1 +
 generic/include/clc/workitem/get_group_id.h   |    1 +
 generic/include/clc/workitem/get_local_id.h   |    1 +
 generic/include/clc/workitem/get_local_size.h |    1 +
 generic/include/clc/workitem/get_num_groups.h |    1 +
 5 files changed, 5 insertions(+), 0 deletions(-)
 create mode 100644 generic/include/clc/synchronization/barrier.h
 create mode 100644 generic/include/clc/workitem/get_group_id.h
 create mode 100644 generic/include/clc/workitem/get_local_id.h
 create mode 100644 generic/include/clc/workitem/get_local_size.h
 create mode 100644 generic/include/clc/workitem/get_num_groups.h

diff --git a/generic/include/clc/synchronization/barrier.h b/generic/include/clc/synchronization/barrier.h
new file mode 100644
index 0000000..9ef2360
--- /dev/null
+++ b/generic/include/clc/synchronization/barrier.h
@@ -0,0 +1 @@
+void barrier(cl_mem_fence_flags flags);
diff --git a/generic/include/clc/workitem/get_group_id.h b/generic/include/clc/workitem/get_group_id.h
new file mode 100644
index 0000000..3d904b9
--- /dev/null
+++ b/generic/include/clc/workitem/get_group_id.h
@@ -0,0 +1 @@
+size_t get_group_id(uint dim);
diff --git a/generic/include/clc/workitem/get_local_id.h b/generic/include/clc/workitem/get_local_id.h
new file mode 100644
index 0000000..f584fab
--- /dev/null
+++ b/generic/include/clc/workitem/get_local_id.h
@@ -0,0 +1 @@
+size_t get_local_id(uint dim);
diff --git a/generic/include/clc/workitem/get_local_size.h b/generic/include/clc/workitem/get_local_size.h
new file mode 100644
index 0000000..22a96aa
--- /dev/null
+++ b/generic/include/clc/workitem/get_local_size.h
@@ -0,0 +1 @@
+size_t get_local_size(uint dim);
diff --git a/generic/include/clc/workitem/get_num_groups.h b/generic/include/clc/workitem/get_num_groups.h
new file mode 100644
index 0000000..b9baad6
--- /dev/null
+++ b/generic/include/clc/workitem/get_num_groups.h
@@ -0,0 +1 @@
+size_t get_num_groups(uint dim);
-- 
1.7.7.6





More information about the Libclc-dev mailing list