[FIX] cuda with energy support

Signed-off-by: Anastasia Lyupa <anastasiya.lyupa@gmail.com>
[FIX] cuda with energy support

and clean defines

Signed-off-by: Anastasia Lyupa <anastasiya.lyupa@gmail.com>
[FIX] compiler warnings

Signed-off-by: Anastasia Lyupa <anastasiya.lyupa@gmail.com>
[IMPROVE] point conditions; [FIX] assign_P_Xi

Signed-off-by: Anastasia Lyupa <anastasiya.lyupa@gmail.com>