modify to refactor CL-CUDA.API.CONTEXT package and CL-CUDA.API.MEMORY package