| View previous topic :: View next topic |
| Author |
Message |
appleluo
Joined: 21 Nov 2012 Posts: 19
|
Posted: Fri Feb 22, 2013 2:30 pm Post subject: Which one is better: kernels or kernels loop |
|
|
Suppose a subroutine has two loops
loop1
loop2
Which way of writing the OpenACC directives is better? and why?
method 1
!$acc kernels
loop1
loop2
!$end acc kernels
method 2
!$acc kernels loop
loop1
!$acc kernels loop
loop2
Thanks,
Ping |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Fri Feb 22, 2013 2:41 pm Post subject: |
|
|
| Quote: | | Which way of writing the OpenACC directives is better? and why? | Neither is better than the other. It's more personal preference and what works better for the particular context.
- Mat |
|
| Back to top |
|
 |
|