Fixed compilation with CUDA

Fixed gpu module compilation after core module refactoring.