Compile to device code task
Model fix
minor fix
CompileToDevice task test