cuda initial support, opensource code from internet