pyjac.performance_tester.performance_tester module

Module for performance testing of pyJac and related tools.

pyjac.performance_tester.performance_tester.STATIC = True

bool – CUDA only works for static libraries

pyjac.performance_tester.performance_tester.is_pdep(rxn)[source]

Check if reaction is pressure depedent.

Notes

Includes traditional pressure dependence: third-body, falloff, and chemically activated bimolecular reactions. Does not include pressure-log or Chebyshev reactions.

Parameters:rxn (ReacInfo) – Reaction object being queried for pressure depedence
Returns:
Return type:True if rxn is pressure dependent
pyjac.performance_tester.performance_tester.check_step_file(filename, steplist)[source]

Checks file for existing data, returns number of runs left

Parameters:
  • filename (str) – Name of file with data
  • steplist (list of int) – List of different numbers of steps
Returns:

runs – Dictionary with number of runs left for each step

Return type:

dict

pyjac.performance_tester.performance_tester.check_file(filename)[source]

Checks file for existing data, returns number of completed runs

Parameters:filename (str) – Name of file with data
Returns:num_completed – Number of completed runs
Return type:int
pyjac.performance_tester.performance_tester.getf(x)[source]

Return linker command.

Parameters:
  • lang ({'icc', 'c', 'cuda'}) – Programming language
  • shared (bool) – True if shared
Returns:

cmd – List with linker command

Return type:

list of str

pyjac.performance_tester.performance_tester.linker(lang, temp_lang, test_dir, filelist, lib=None)[source]
pyjac.performance_tester.performance_tester.performance_tester(home, work_dir, use_old_opt)[source]

Runs performance testing for pyJac, TChem, and finite differences.

Parameters:
  • home (str) – Directory of source code files
  • work_dir (str) – Working directory with mechanisms and for data
  • use_old_opt (bool) – If True, use old optimization files found
Returns:

Return type:

None