Skip to content

Python bindings for General Purpose Timing Library (GPTL)

Notifications You must be signed in to change notification settings

jychoi-hpc/gptl4py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPTL for Python

Python bindings for General Purpose Timing Library (GPTL).

Overview

This package provides Python bindings for General Purpose Timing Library (GPTL).

Build and install

GPTL_DIR=/dir/to/gptl CC=mpicc python setup.py install --prefix=/dir/to/install

Quick Start

import gptl4py as gp

gp.initialize()

gp.start("count")
for i in range(1000):
    pass
gp.stop("count")

## Or, use with a decorator
@gp.profile
def count():
  for i in range(1000):
      pass
count()

gp.pr_summary()
gp.finalize()

For more details, check example directory.

About

Python bindings for General Purpose Timing Library (GPTL)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published