Skip to main content

GpuCalculateTools is a data computation library developed based on the native Python C API and CUDA. Currently, the library is in testing and development. If you have any questions, please contact 1295284735@qq.com.

Project description

GpuCalculateTools

GpuCalculateTools是一个基于GPU并行化技术开发的python包。它旨在提升数据的运算效率,提供了许多高效运算的算子、模块和函数等等。目前该包正在开发完善中,且仅支持英伟达系列显卡(因为笔者的显卡就是1660ti的)。后续可能会兼容更多的显卡类型。敬请期待。

如何使用GpuCalculateTools查看设备的运行参数?

通过使用get_device_prop函数可以获取显卡的运行参数,包括显卡的名称、计算能力系数、显存大小等等。该函数参数为dev_no,dev_no表示显卡的序号。如果设备中包含多个显卡,可以通过get_device_count函数获取显卡的数量,然后根据序号获取指定显卡的详细信息。

如何在指定显卡运行程序?

通过使用set_device函数指定某一个显卡运行程序。该函数参数为dev_no,dev_no表示显卡的序号。

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

gpucalculatetools-0.0.2.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file gpucalculatetools-0.0.2.tar.gz.

File metadata

  • Download URL: gpucalculatetools-0.0.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.8

File hashes

Hashes for gpucalculatetools-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c801b206cae5043f9fcdfa013c7b517184e4842f5551870b1cd5ed8c79de328c
MD5 1596dcbe2bf34617752135f85769f10a
BLAKE2b-256 456182b9e998fadbc5750dad69c2730271b225c8feaae1de2253ff3cc47b56c1

See more details on using hashes here.

Supported by

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