AC bugfix for CUDA under OSX.