I have a function containing a simple reduction loop. Since the loop count varies, but is typically too small to be worth run in parallel, I have declared it as “acc routine seq” to express my intention. However, the compiler reports the following:
1415, Generating acc routine seq 1427, Loop carried scalar dependence for JJ at line 1430 Scalar last value needed after loop for JJ at line 1440
Does the compiler just proactively warn me not to declare the routine as gang or vector because of the loop carried dependence and I can simply ignore it in my case? I think it would be better if the message were only generated in case I had specified gang or vector leading to undefined behavior.