summaryrefslogtreecommitdiff
path: root/generic/include
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-08-05 22:25:37 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-08-05 22:25:37 +0000
commita37e2c06b60184ad139cf01f6b37ef2276febf34 (patch)
tree22575f29ff621ce44d37ac69a7180fab7f3b7958 /generic/include
parent3b230ffdb7c8c312e327d18f23e3d91ec8ae0511 (diff)
PTX: move implementations of work-item and synchronisation functions
to lib, and add header files in generic. Incorporates a patch by Tom Stellard! git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@161313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic/include')
-rw-r--r--generic/include/clc/synchronization/barrier.h1
-rw-r--r--generic/include/clc/workitem/get_global_id.h1
-rw-r--r--generic/include/clc/workitem/get_global_size.h1
-rw-r--r--generic/include/clc/workitem/get_group_id.h1
-rw-r--r--generic/include/clc/workitem/get_local_id.h1
-rw-r--r--generic/include/clc/workitem/get_local_size.h1
-rw-r--r--generic/include/clc/workitem/get_num_groups.h1
7 files changed, 7 insertions, 0 deletions
diff --git a/generic/include/clc/synchronization/barrier.h b/generic/include/clc/synchronization/barrier.h
new file mode 100644
index 0000000..7167a3d
--- /dev/null
+++ b/generic/include/clc/synchronization/barrier.h
@@ -0,0 +1 @@
+_CLC_DECL void barrier(cl_mem_fence_flags flags);
diff --git a/generic/include/clc/workitem/get_global_id.h b/generic/include/clc/workitem/get_global_id.h
new file mode 100644
index 0000000..92759f1
--- /dev/null
+++ b/generic/include/clc/workitem/get_global_id.h
@@ -0,0 +1 @@
+_CLC_DECL size_t get_global_id(uint dim);
diff --git a/generic/include/clc/workitem/get_global_size.h b/generic/include/clc/workitem/get_global_size.h
new file mode 100644
index 0000000..2f83705
--- /dev/null
+++ b/generic/include/clc/workitem/get_global_size.h
@@ -0,0 +1 @@
+_CLC_DECL size_t get_global_size(uint dim);
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..346c82c
--- /dev/null
+++ b/generic/include/clc/workitem/get_group_id.h
@@ -0,0 +1 @@
+_CLC_DECL 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..169aeed
--- /dev/null
+++ b/generic/include/clc/workitem/get_local_id.h
@@ -0,0 +1 @@
+_CLC_DECL 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..040ec58
--- /dev/null
+++ b/generic/include/clc/workitem/get_local_size.h
@@ -0,0 +1 @@
+_CLC_DECL 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..e555c7e
--- /dev/null
+++ b/generic/include/clc/workitem/get_num_groups.h
@@ -0,0 +1 @@
+_CLC_DECL size_t get_num_groups(uint dim);