Made CudaAdapter inline