Skip to content

Instantly share code, notes, and snippets.

@masarakki
Last active March 15, 2016 17:47
Show Gist options
  • Save masarakki/807d55d67771b912979a to your computer and use it in GitHub Desktop.
Save masarakki/807d55d67771b912979a to your computer and use it in GitHub Desktop.
cuda unknown error
masaki@desktop:~/ $ cat main.cu
#include <stdio.h>

int main() {
    int count = 0;
    cudaError_t error;

    error = cudaGetDeviceCount(&count);
    printf("count = %d\nerror = %s\n", count, cudaGetErrorString(error));
    return 0;
}
masaki@desktop:~/ $ /usr/local/cuda/bin/nvcc main.cu
masaki@desktop:~/ $ ./a.out
count = 0
error = unknown error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment