Fixing CUDA matrix activation.