Installation problems on iMac

The installation went fine until I tried the bandwidth program. First time it failed so I tried rebooting the machine as recommended in previous posts. This time it partly worked:-
[CUDA Bandwidth Test] - Starting…
Running on…

Device 0: GeForce GTX 660M
Quick Mode

Host to Device Bandwidth, 1 Device(s)
PINNED Memory Transfers
Transfer Size (Bytes) Bandwidth(MB/s)
33554432 6125.9

Device to Host Bandwidth, 1 Device(s)
PINNED Memory Transfers
Transfer Size (Bytes) Bandwidth(MB/s)
33554432 9270.9

CUDA error at bandwidthTest.cu:876 code=2(cudaErrorMemoryAllocation) “cudaMalloc((void **) &d_odata, memSize)”

and on subsequent test it failed immediately

with
Device 0: GeForce GTX 660M
Quick Mode

CUDA error at bandwidthTest.cu:730 code=2(cudaErrorMemoryAllocation) “cudaEventCreate(&start)”

I had the same problem, with a different card:

[CUDA Bandwidth Test] - Starting…
Running on…

Device 0: GeForce GTX 675MX
Quick Mode

CUDA error at bandwidthTest.cu:781 code=2(cudaErrorMemoryAllocation) “cudaMalloc((void **) &d_idata, memSize)”

Here is the output of deviceQuery:

./samples/bin/x86_64/darwin/release/deviceQuery Starting…

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: “GeForce GTX 675MX”
CUDA Driver Version / Runtime Version 8.0 / 8.0
CUDA Capability Major/Minor version number: 3.0
Total amount of global memory: 1024 MBytes (1073414144 bytes)
( 7) Multiprocessors, (192) CUDA Cores/MP: 1344 CUDA Cores
GPU Max Clock rate: 719 MHz (0.72 GHz)
Memory Clock rate: 2500 Mhz
Memory Bus Width: 256-bit
L2 Cache Size: 524288 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 2 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 8.0, CUDA Runtime Version = 8.0, NumDevs = 1, Device0 = GeForce GTX 675MX
Result = PASS

So I just updated to CUDA Driver Version 8.0.71 and badnwdithTest passes now.