Skip to main content

Detect GPU

Project description

This is a test for GPU by TensorFlow

pip install -U gpu-info-shnu

sample code as follows:

from gpu import gpu
 print(gpu.gpu())`
 [![gpu](gpu sample "gpu")](data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBYWEhgSFRUYGBgZHRkZHRwYGBwfGBwcHBgZGhgaHBwdJDAlHB4sHxoYJjgmKzAxNTU1GiQ7QDs0Py40NjEBDAwMEA8QGhISGj0rISsxNDE0NDY0MTExMTQ0ND8xNDQ0NDQ0NDQ0NDQ0NDQ0NDQxNDQxNDE0MTQ0MTE0NDExP//AABEIAJ0BQQMBIgACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAABQEDBAYHAgj/xABFEAACAQIEAgcEBgcHAwUAAAABAgADEQQSITEFQQYiUWFxgZEHEzKhFEJSVHKSM2KCsdHS8BUWI5OiweFjo8IXJENEU//EABgBAQEBAQEAAAAAAAAAAAAAAAABAgME/8QAKBEBAQACAAUEAQQDAAAAAAAAAAECEQMSEyExQVFSYZEEMoGxIiNx/9oADAMBAAIRAxEAPwDs0REBERAREQEREBERAREQEREBERAREQEREBERAREQES1UrKouxA8T/V5itjvsqT3t1R8xf5QM+WK2IVfiYAnYcz4Dc+UwXdm+JyB2J1fnq3oRLaUwuwA7+fmecDIfHsdETzc5R5AXY+YExagZvjdiPsp1F+RzHza3dLkQKYYsmgIy8ly2A+evjM6niwdDofl6zBiBLgysikqMux8uUy6eLB30/dAyolAZWAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiWq9ZUUszKqjcsQAPEnaR54upH+EhqD7XwU/HO9gR+HNAlZYr4hEGZ2VR2sQJGF6ri5qKqnYUdSfF2vceCqe+KeGRTmC3b7TEs/wCdrny2gZJ4jf4FZu9uqv8Aq1PiARPD1HbdrDsTT/UdT4i0oYtA8KgBuBr27nzJ1M9Stp5dwoufnttcknkANSYFbSxi8ZSpLmq1ERRrd2VRbxYicg6We02tUZ6OCYU6Yu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IiICIiAiIgUkPxbgFKuGuoDNcE2urdzLs3jv3yYlZLByrF9GqmHq07ke6pk5A4LlBZhajVPWVTcAo9xbaQvGsfUw+GNRqd1epkFNrWpooIGUgah8gIBH1p2qrSVlKsAQdwRcGaxxfowGVvdgMjCzUnsQR2An9x9ZmxqVz1+Kmrh/pGGdmyMC6EIKqAILh1tazOHbq2vfS20kXppUpjMgKuAxBFxrrqOfj85Y4d0bTDV6joWCumQ0nF8vWB1J1I02I0vvJF0toAABoANgOwTF+mp9tJ4x0XKK1WgSUUFmQ3LADco27aa5TrodTNZqrdbjfcd860s0DiHRyumJVKaF6TOpVl+qpYHIwO1hpfY28QN45M5R74P0Cx2IAZaeRTzbs8dvQk902qp7GWFEsuIU1dwpBynuzdvflnZpWa0y43wT2arTdGqtVaopzFVBQA20yurXAH2g2vdN8xvRenikH0pFLr8LixcC2xNrN4G82aJynDvNbcrf6at7akaZwzoBQpkllVzfQksVt+Am1/EmbVhsEiWsNtuweAGgmVE1OHjPES5WkrETohERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQERECP4jwunWFmFm5MujDz5juM1TiPAatIFtHQE6oDmA7WX+F7TeombjKstjlQYctZfpYgoBUUDMjBlvte9t/AmbXjui9NnDIxpgnrKoBBv8AZv8ACfUd0xuN8Apqi+7JUMUUg3Yb76neZ1YvNttsRE6MkREBERAREQEREBERAREQEREBERAREQEREBERAREQERED/9k= "gpu")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpu_info_shnu-0.5.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

gpu_info_shnu-0.5.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file gpu_info_shnu-0.5.0.tar.gz.

File metadata

  • Download URL: gpu_info_shnu-0.5.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/3.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for gpu_info_shnu-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b85be88dbf983d8590c1b032dcecf682391ad554d2819feb0c154cb5bab2676a
MD5 82ac38d2133994603122aff2d4c13f64
BLAKE2b-256 94cbf268f1a9b09dbfa1421d041df31682bc445a946c5b20374bd7b4da2dfbee

See more details on using hashes here.

File details

Details for the file gpu_info_shnu-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: gpu_info_shnu-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/3.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for gpu_info_shnu-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f2abd4574525a0e74958b6f7417fa561ad4907c7070bec9df1655818ee58fbb
MD5 c8614b546c0d1ce97077b81b8a3d09cd
BLAKE2b-256 b01dd30cd0f4d49e2fc33b673e30cdcc6cc6f94d4ef8f4159b1a0227616e3ff5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page