Switched from driver API to runtime API

in order to use Thrust library