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.1.tar.gz (6.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: gpucalculatetools-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 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.1.tar.gz
Algorithm Hash digest
SHA256 72c70cfd7561ee18a90accc6c911e9d32f49a5376e448031ab67709b908a86be
MD5 dc41ef9eafe5e3544fb7bb415a2dd2ad
BLAKE2b-256 b44aa2305feee41d9378ec87a1f86628e6dd24b9e241a638c6950e73a0dd3193

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