Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M magicCut
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Computational Earth SciencesComputational Earth Sciences
  • HPC for ES Team
  • magicCut
  • Wiki
  • Home

Home · Changes

Page history
Update home authored Nov 09, 2020 by sparonuz's avatar sparonuz
Hide whitespace changes
Inline Side-by-side
home.md
View page @ 724d615c
...@@ -21,4 +21,30 @@ It is composed by three different part ...@@ -21,4 +21,30 @@ It is composed by three different part
Let's take a look of what they do, and how to use them. Let's take a look of what they do, and how to use them.
### magicCut
Input:
- trace name
- number of time steps
Output:
- cut trace of the best time-step
- list of functions traced and the correspondent extraes ID ( sometimes it is useful to check that everything is ok)
First of all checks that there are functions in the trace
```bash
# grep through prv file if functions are there
func_check=`grep -m 1 60000019 ${pcf_trace_file} | wc -l`
```
Then it reads the .pcf file and creates a file (`FUNCTION_ID_NAMES.txt`) where the IDs that extrae uses are stored along with function's names.
Then, using grep, creates a file with all the lines trace lines relative to functions:
```bash
# Retrieve function's ID
echo "Retrieve function's ID"
grep ':60000019:' ${trace_file} | grep -v ':0:' | awk -F : '{print $2, $6, $8}' > ${CPU_T_ID}
```
1. `grep ':60000019:' ${trace_file}` select the function lines
2. ` grep -v ':0:' ` exclude the line relative to entering and exiting a function
3. `awk -F : '{print $2, $6, $8}'` select the columns relative to CPU number, time and function ID
[... to be continued] [... to be continued]
Clone repository
  • Home