Scalable Agent-based GPU Enabled Simulator.
Project description
SAGESim
Scalable Agent-based GPU Enabled Simulator
Requirements
- Python 3.7+
conda create -n sagesimenv python=3.9conda activate sagesimenv- Install CUDA toolkit
-
- [Install using Anaconda](
conda install -c anaconda cudatoolkit)
- [Install using Anaconda](
- install mpi4py (Recommend using conda): https://mpi4py.readthedocs.io/en/stable/install.html#using-conda
- Follow the instructions here to install CuPy
pip install -r requirements.txt
Run Example
git clone https://code.ornl.gov/sagesim/sagesimexport PYTHONPATH=/path/to/clone_repocd /path/to/clone_repo/examples/sirmpiexec -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
cupydata types and array routines in favor ofnumpy: [https://docs.cupy.dev/en/stable/reference/routines.html] forloops must use range iterator only. No 'for each' style loops.returndoes not seem to work well eitherbreakandcontinueare unsupported!- Cannot reassign variables within
iforforstatements. Must be assigned at top level of function or new variable declared under subscope. -1indexing 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. Uselen(my_array) - 1instead
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sagesim-0.1.0-py3-none-any.whl
(133.9 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c49ff105c7a32d1c67814aef75b080e0fb1fca8b9c1ee5ceb2ae40d5a76a4d59
|
|
| MD5 |
0db2b0a30d7e0fd5a9c2f752748aa711
|
|
| BLAKE2b-256 |
49a571a3cc9e2a294bae02033163817ee70d03f54a1e913f5d666dce88446d93
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed98e6dbcee3cfcde87d853ad28111ebf03f7ce793f99308c0b0ee470a0a5d69
|
|
| MD5 |
8660080524eb05429d5c779e234411d6
|
|
| BLAKE2b-256 |
2e8e9a458f1ec41c7d0834bc807a1af9fad3fa3b6462ad02efcd84949d72420e
|