Skip to content

Add syncThreads barrier alias#193

Open
KingParmenides wants to merge 1 commit into
Syncleus:masterfrom
KingParmenides:bounty-40-syncthreads
Open

Add syncThreads barrier alias#193
KingParmenides wants to merge 1 commit into
Syncleus:masterfrom
KingParmenides:bounty-40-syncthreads

Conversation

@KingParmenides
Copy link
Copy Markdown

Adds a CUDA-style syncThreads() helper for synchronizing all work-items in the current work group.

Changes:

  • Adds Kernel.syncThreads() as a convenience alias for localGlobalBarrier() semantics
  • Maps syncThreads() to barrier(CLK_LOCAL_MEM_FENCE | CLK_GLOBAL_MEM_FENCE) in generated OpenCL
  • Adds codegen coverage for the generated barrier call
  • Adds a JTP runtime test showing local work-items wait before reading each other's writes

/claim #40

Testing:

  • git diff --check
  • Not run: Maven/JUnit tests because this Codex environment has no Java runtime or mvn installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant