Skip to content

Instantly share code, notes, and snippets.

@psychocoderHPC
Created March 22, 2018 09:28
Show Gist options
  • Select an option

  • Save psychocoderHPC/a4751e674625c0f9edbbbbbfd61ab255 to your computer and use it in GitHub Desktop.

Select an option

Save psychocoderHPC/a4751e674625c0f9edbbbbbfd61ab255 to your computer and use it in GitHub Desktop.
#include <cuda_runtime.h>
#include <iostream>
int main()
{
cudaDeviceProp props;
cudaGetDeviceProperties(&props, 0);
std::cout<<props.major<<props.minor<<" smxcount "<<props.multiProcessorCount<<std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment