Skip to main content

Scalable Agent-based GPU Enabled Simulator.

Project description

SAGESim

Scalable Agent-based GPU Enabled Simulator

Requirements

Run Example

  • git clone https://code.ornl.gov/sagesim/sagesim
  • export PYTHONPATH=/path/to/clone_repo
  • cd /path/to/clone_repo/examples/sir
  • mpiexec -n 4 python run.py

There are some unfortunate quirks to using CuPyx jit.rawkernel:

  • nan checked by inequality to self. Unfortunate limitation of cupyx.
  • Dicts and objects are unsupported.
  • *args and **kwargs are unsupported.
  • nested functions are unsupported.
  • Be sure to use cupy data types and array routines in favor of numpy: [https://docs.cupy.dev/en/stable/reference/routines.html]
  • for loops must use range iterator only. No 'for each' style loops.
  • return does not seem to work well either
  • break and continue are unsupported!
  • Cannot reassign variables within if or for statements. Must be assigned at top level of function or new variable declared under subscope.
  • -1 indexing does not necessarily work as expected, as it will access the last element of the memory block of the array instead of the logical array. Use len(my_array) - 1 instead

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

sagesim-0.1.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sagesim-0.1.0-py3-none-any.whl (133.9 kB view details)

Uploaded Python 3

File details

Details for the file sagesim-0.1.0.tar.gz.

File metadata

  • Download URL: sagesim-0.1.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for sagesim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c49ff105c7a32d1c67814aef75b080e0fb1fca8b9c1ee5ceb2ae40d5a76a4d59
MD5 0db2b0a30d7e0fd5a9c2f752748aa711
BLAKE2b-256 49a571a3cc9e2a294bae02033163817ee70d03f54a1e913f5d666dce88446d93

See more details on using hashes here.

File details

Details for the file sagesim-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sagesim-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 133.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for sagesim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed98e6dbcee3cfcde87d853ad28111ebf03f7ce793f99308c0b0ee470a0a5d69
MD5 8660080524eb05429d5c779e234411d6
BLAKE2b-256 2e8e9a458f1ec41c7d0834bc807a1af9fad3fa3b6462ad02efcd84949d72420e

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