Cuda Driver incompatibility


I am new to using Cuda and I recently installed the Cuda 9.2 toolkit on my Mac High Sierra 10.13.4. I tried to launch the kernel for the first time and it did not work. Here is my code:

#include <stdio.h>
#include <assert.h>
#include <cuda.h>
#include <cuda_runtime.h>

__global__ void test(){
   printf("Hi Cuda World");


 int main( int argc, char** argv ) {
   int driver_version = 0, runtime_version = 0;
   printf("Driver Version: %d\n Runtime Version: %d\n",driver_version, runtime_version);
	 cudaError_t cudaerr = cudaDeviceSynchronize(); 
   if (cudaerr != cudaSuccess)
        printf("kernel launch failed with error \"%s\".\n",
    return 0;

I received the following output:

Driver Version: 0
 Runtime Version: 0
kernel launch failed with error "CUDA driver version is insufficient for CUDA runtime version".
Saving session...
...copying shared history...
...saving history...truncating history files...

[Process completed]

I am unsure why it says that my driver version is 0. Maybe I messed up the code because in the CUDA settings it says that my CUDA driver version is 396.64. To the right of that however, in red letters it says “No GPU Detected” (I’m unsure if that is the cause for the error or not).

Do you have a NVIDIA GPU in that Mac? You can’t use CUDA without a NVIDIA GPU.