Special-case single GPU for shared memory