summaryrefslogtreecommitdiff
path: root/r600/include/clc
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-06-26 18:18:59 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-06-26 18:18:59 +0000
commit2b198dcbab2303ebdb9892df1a0e2ea4f56cc235 (patch)
tree77688fcd7a297c69580ae486e11611a9fa8c7be0 /r600/include/clc
parentc1a78086615f94e8ba901d15a1b091e0df1c0fb2 (diff)
r600: Initial support
This includes a get_global_id() implementation and function stubs for the other workitem and synchronization functions. git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'r600/include/clc')
-rw-r--r--r600/include/clc/synchronization/barrier.h2
-rw-r--r--r600/include/clc/workitem/get_global_id.h1
-rw-r--r--r600/include/clc/workitem/get_global_size.h3
-rw-r--r--r600/include/clc/workitem/get_group_id.h3
-rw-r--r--r600/include/clc/workitem/get_local_id.h3
-rw-r--r--r600/include/clc/workitem/get_local_size.h3
-rw-r--r--r600/include/clc/workitem/get_num_groups.h3
7 files changed, 18 insertions, 0 deletions
diff --git a/r600/include/clc/synchronization/barrier.h b/r600/include/clc/synchronization/barrier.h
new file mode 100644
index 0000000..7f150d4
--- /dev/null
+++ b/r600/include/clc/synchronization/barrier.h
@@ -0,0 +1,2 @@
+_CLC_INLINE void barrier(cl_mem_fence_flags flags) {
+}
diff --git a/r600/include/clc/workitem/get_global_id.h b/r600/include/clc/workitem/get_global_id.h
new file mode 100644
index 0000000..b61450f
--- /dev/null
+++ b/r600/include/clc/workitem/get_global_id.h
@@ -0,0 +1 @@
+size_t get_global_id(uint dim);
diff --git a/r600/include/clc/workitem/get_global_size.h b/r600/include/clc/workitem/get_global_size.h
new file mode 100644
index 0000000..afd9ae1
--- /dev/null
+++ b/r600/include/clc/workitem/get_global_size.h
@@ -0,0 +1,3 @@
+_CLC_INLINE size_t get_global_size(uint dim) {
+ return 0;
+}
diff --git a/r600/include/clc/workitem/get_group_id.h b/r600/include/clc/workitem/get_group_id.h
new file mode 100644
index 0000000..6862dba
--- /dev/null
+++ b/r600/include/clc/workitem/get_group_id.h
@@ -0,0 +1,3 @@
+_CLC_INLINE size_t get_group_id(uint dim) {
+ return 0;
+}
diff --git a/r600/include/clc/workitem/get_local_id.h b/r600/include/clc/workitem/get_local_id.h
new file mode 100644
index 0000000..22749cd
--- /dev/null
+++ b/r600/include/clc/workitem/get_local_id.h
@@ -0,0 +1,3 @@
+_CLC_INLINE size_t get_local_id(uint dim) {
+ return 0;
+}
diff --git a/r600/include/clc/workitem/get_local_size.h b/r600/include/clc/workitem/get_local_size.h
new file mode 100644
index 0000000..51d9762
--- /dev/null
+++ b/r600/include/clc/workitem/get_local_size.h
@@ -0,0 +1,3 @@
+_CLC_INLINE size_t get_local_size(uint dim) {
+ return 0;
+}
diff --git a/r600/include/clc/workitem/get_num_groups.h b/r600/include/clc/workitem/get_num_groups.h
new file mode 100644
index 0000000..fe1f343
--- /dev/null
+++ b/r600/include/clc/workitem/get_num_groups.h
@@ -0,0 +1,3 @@
+_CLC_INLINE size_t get_num_groups(uint dim) {
+ return 0;
+}