Change reduce_equal to return false if no instances are executing

This commit is contained in:
Matt Pharr
2011-08-14 07:11:45 +01:00
parent f868a63064
commit ff608eef71
2 changed files with 3 additions and 3 deletions

View File

@@ -1420,7 +1420,7 @@ domixed:
br i1 %alloff, label %doalloff, label %actuallymixed
doalloff:
ret i1 undef ;; should we return an actual value here?
ret i1 false ;; this seems safest
actuallymixed:
; First, figure out which lane is the first active one

View File

@@ -1850,8 +1850,8 @@ There are also variants of these functions that return the value as a
reference uniform unsigned int64 sameval)
uniform bool reduce_equal(double, reference uniform double sameval)
The value returned by the ``reduce_equal()`` function is undefined if
it is called when none of the program instances are running.
If called when none of the program instances are running,
``reduce_equal()`` will return ``false``.
There are also a number of functions to compute "scan"s of values across
the program instances. For example, the ``exclusive_scan_and()`` function