arrayfire/arrayfire — pull request #170 by umar456 (2014-12-01 14:23:01+00:00)
Title: Fixes #167: Check if driver is unloaded when freeing array

Global variables are freed after the driver has been unloaded. This fix
throws exceptions when `cudaFree` returns errors which are not
`cudaErrorCudartUnloading`.