Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python tool designed for E3SM Land Model to create unit-tests and code-insertion of GPU compiler directives.

NotificationsYou must be signed in to change notification settings

peterdschwartz/SPEL_OpenACC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software Package for E3SM Land began as toolkit for creating functional unit tests for any subroutine in the E3SM Land Model.Moreover, the parsing capabilities of SPEL allow for easy script-based source-to-source modifications, such as OpenACC pragma insertion.Now, SPEL can export data to a database (managed by Django) so that the overall flow of ELM can be inspected at a high level in a web browser.The general aim of SPEL now is to serve as a platform for developing, debugging, and understanding of complicated (legacy) Fortran projects, though ELM is the only supported project currently.

Install Instructions

Installation is very easy in a python virtual environment. Dependencies are managed in thepyproject.toml

git clone https://www.github.com/peterdschwartz/SPEL_OpenACC.gitcd SPEL_OpenACCpip install -e.

Extra configuration is required to point SPEL to the location of the E3SM clone in the./scripts/mod_config.py file modify theE3SM_SRCROOT = spel_dir + <relative path to E3SM>

Commands:

# Creates unit-test for subroutines with given (optional casename). Default casename is 'fut'.# Unit-tests are kept in ./unit-tests/<casename>spel create -s<list-of-subroutines> -c<casename># Compile and run unit-test.  If in the FUT directory, the casename is not needed.spel run<casename># Compare two netcdf files (ie, for SPEL generated by ReadWriteMod::write_elmtypes)spel diff --ref<ref file>.nc --test<test file>.nc# Export pickle files to csv, which can then be added to the db via Django commands# The commit is the HEAD of user's E3SM repo, which is used to tag the pickle filesspelexport -c<commit>

About

Python tool designed for E3SM Land Model to create unit-tests and code-insertion of GPU compiler directives.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp