Simple question. I’m going to soon work on moving some code to the GPU that uses the WHERE/ELSEWHERE construct liberally (often, say, to prevent division-by-zero):
where( QA > 0.0 )
fQi_A = QAi / QA
elsewhere
fQi_A = 0.0
endwhere
My question is, is WHERE/ELSEWHERE supported in CUDA Fortran or will I need to translate them into IF blocks? (My guess is that I’ll have to since the GPUs require more explicit knowledge of program flow than this construct.)
Thanks,
Matt