# Task Variant

Legion allows applications to register multiple, functionally equivalent variants of a task.
For example, different variants might exist to support CPU or GPU execution.
The fifth optional parameter to register_legion_task allows the application to specify the VariantID for the task. 