fix the library bug
update gpu sample for gpu scheduling