1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitwatch > barrier() > OpenCLの同期関数

Last updated at Posted at 2015-07-06

https://github.com/Itseez/opencv/commit/99aaf4030a221ffd15851a0e7723fef45aaf9ff9
をみていて

barrier(CLK_LOCAL_MEM_FENCE);

というコードを見つけた。

barrier()って何だろうかと調べると OpenCL の同期用の関数らしい。


http://wiki.tommy6.net/wiki/barrier

barrier() が条件文中にあるとき、あるワークアイテムが条件文に突入して barrier() を実行するのであれば、すべてのワークアイテムがその条件文に突入しなければなりません。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?