~ubuntu-branches/ubuntu/vivid/libclc/vivid

« back to all changes in this revision

Viewing changes to r600/lib/synchronization/barrier.cl

  • Committer: Package Import Robot
  • Author(s): Michael Gilbert, Julian Wollrath, Michael Gilbert
  • Date: 2014-01-10 02:46:15 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140110024615-7htdxf30p179tsq5
Tags: 0~git20140101-1
[ Julian Wollrath ]
* New upstream snapshot.
* Use LLVM 3.4 and correct dependencies.
* Enable verbose build.
* Bump standards version to 3.9.5 (no changes needed).
* Update years in debian/copyright.

[ Michael Gilbert ]
* Eliminate duplicated files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
#include <clc/clc.h>
3
3
 
4
 
void barrier_local(void);
5
 
void barrier_global(void);
6
 
 
7
 
void barrier(cl_mem_fence_flags flags) {
8
 
  if (flags & CLK_LOCAL_MEM_FENCE) {
9
 
    barrier_local();
10
 
  }
11
 
 
12
 
  if (flags & CLK_GLOBAL_MEM_FENCE) {
13
 
    barrier_global();
14
 
  }
 
4
_CLC_DEF int __clc_clk_local_mem_fence() {
 
5
  return CLK_LOCAL_MEM_FENCE;
 
6
}
 
7
 
 
8
_CLC_DEF int __clc_clk_global_mem_fence() {
 
9
  return CLK_GLOBAL_MEM_FENCE;
15
10
}