cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Fuxianjun
Journeyman III

How to specify work-group-size when run program on CPU ?

I know my GPU's frontwave size is 64 and work_group_size would be multiple of 64. But if I want to calculate on CPU, how to specify the work_group_size, thanks for reading and reply !

0 Likes
3 Replies
Fuxianjun
Journeyman III

By the way, can barrier() function work in CPU program? If not ,how to make threads synchronization ?

0 Likes

Originally posted by: Fuxianjun By the way, can barrier() function work in CPU program? If not ,how to make threads synchronization ?

 

Yes barrier() works on CPU.

0 Likes
genaganna
Journeyman III

Originally posted by: Fuxianjun I know my GPU's frontwave size is 64 and work_group_size would be multiple of 64. But if I want to calculate on CPU, how to specify the work_group_size, thanks for reading and reply !

 

In case of CPU,  wavefront or Warp is 1.  I hope this clears.

0 Likes