handle absence of parallelism
commitdfc8a3bd0ea4ca4a6f5c313e84be216240bb4bc8
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 4 Jan 2012 11:52:47 +0000 (4 12:52 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 4 Jan 2012 12:18:31 +0000 (4 13:18 +0100)
tree6c6266efff4ebefbc5d62fe9caa7c0a59807da04
parent8dc0462a7cd6c7618e61e6c7fa11396c971097da
handle absence of parallelism

Before, we would abort if we couldn't find any parallelism, even
if this was just for some of the statements.
We now accept that some parts of the schedule tree do not contain
any parallelism.

After this commit, the sequential statements are still executed
on the GPU (using a single block and a single thread).
It would probably be better to just run the sequential statements
on the host.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
cuda.c