refactor variable interfaces and export them
Merge branch 'master' of github.com:takagi/cl-cuda