Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 36cf9949 authored by Millian Poquet's avatar Millian Poquet
Browse files

[clean] remove debug workloads for obfh

These workloads were introduced to debug obfh ; they should not
have been merged into master.
parent ccf7038c
Pipeline #15467 canceled with stages
{
"profiles": {
"delay_001": {
"delay": 1.0,
"type": "delay"
},
"delay_002": {
"delay": 2.0,
"type": "delay"
},
"delay_003": {
"delay": 3.0,
"type": "delay"
},
"delay_004": {
"delay": 4.0,
"type": "delay"
},
"delay_005": {
"delay": 5.0,
"type": "delay"
},
"delay_006": {
"delay": 6.0,
"type": "delay"
},
"delay_007": {
"delay": 7.0,
"type": "delay"
},
"delay_008": {
"delay": 8.0,
"type": "delay"
},
"delay_009": {
"delay": 9.0,
"type": "delay"
},
"delay_010": {
"delay": 10.0,
"type": "delay"
},
"delay_011": {
"delay": 11.0,
"type": "delay"
},
"delay_012": {
"delay": 12.0,
"type": "delay"
},
"delay_013": {
"delay": 13.0,
"type": "delay"
},
"delay_014": {
"delay": 14.0,
"type": "delay"
},
"delay_015": {
"delay": 15.0,
"type": "delay"
},
"delay_016": {
"delay": 16.0,
"type": "delay"
},
"delay_017": {
"delay": 17.0,
"type": "delay"
},
"delay_018": {
"delay": 18.0,
"type": "delay"
},
"delay_019": {
"delay": 19.0,
"type": "delay"
},
"delay_020": {
"delay": 20.0,
"type": "delay"
},
"delay_021": {
"delay": 21.0,
"type": "delay"
},
"delay_022": {
"delay": 22.0,
"type": "delay"
},
"delay_023": {
"delay": 23.0,
"type": "delay"
},
"delay_024": {
"delay": 24.0,
"type": "delay"
},
"delay_025": {
"delay": 25.0,
"type": "delay"
},
"delay_026": {
"delay": 26.0,
"type": "delay"
},
"delay_027": {
"delay": 27.0,
"type": "delay"
},
"delay_028": {
"delay": 28.0,
"type": "delay"
},
"delay_029": {
"delay": 29.0,
"type": "delay"
},
"delay_030": {
"delay": 30.0,
"type": "delay"
},
"delay_031": {
"delay": 31.0,
"type": "delay"
},
"delay_032": {
"delay": 32.0,
"type": "delay"
},
"delay_033": {
"delay": 33.0,
"type": "delay"
},
"delay_034": {
"delay": 34.0,
"type": "delay"
},
"delay_035": {
"delay": 35.0,
"type": "delay"
},
"delay_036": {
"delay": 36.0,
"type": "delay"
},
"delay_037": {
"delay": 37.0,
"type": "delay"
},
"delay_038": {
"delay": 38.0,
"type": "delay"
},
"delay_039": {
"delay": 39.0,
"type": "delay"
},
"delay_040": {
"delay": 40.0,
"type": "delay"
},
"delay_041": {
"delay": 41.0,
"type": "delay"
},
"delay_042": {
"delay": 42.0,
"type": "delay"
},
"delay_043": {
"delay": 43.0,
"type": "delay"
},
"delay_044": {
"delay": 44.0,
"type": "delay"
},
"delay_045": {
"delay": 45.0,
"type": "delay"
},
"delay_046": {
"delay": 46.0,
"type": "delay"
},
"delay_047": {
"delay": 47.0,
"type": "delay"
},
"delay_048": {
"delay": 48.0,
"type": "delay"
},
"delay_049": {
"delay": 49.0,
"type": "delay"
},
"delay_050": {
"delay": 50.0,
"type": "delay"
},
"delay_051": {
"delay": 51.0,
"type": "delay"
},
"delay_052": {
"delay": 52.0,
"type": "delay"
},
"delay_053": {
"delay": 53.0,
"type": "delay"
},
"delay_054": {
"delay": 54.0,
"type": "delay"
},
"delay_055": {
"delay": 55.0,
"type": "delay"
},
"delay_056": {
"delay": 56.0,
"type": "delay"
},
"delay_057": {
"delay": 57.0,
"type": "delay"
},
"delay_058": {
"delay": 58.0,
"type": "delay"
},
"delay_059": {
"delay": 59.0,
"type": "delay"
},
"delay_060": {
"delay": 60.0,
"type": "delay"
},
"delay_061": {
"delay": 61.0,
"type": "delay"
},
"delay_062": {
"delay": 62.0,
"type": "delay"
},
"delay_063": {
"delay": 63.0,
"type": "delay"
},
"delay_064": {
"delay": 64.0,
"type": "delay"
},
"delay_065": {
"delay": 65.0,
"type": "delay"
},
"delay_066": {
"delay": 66.0,
"type": "delay"
},
"delay_067": {
"delay": 67.0,
"type": "delay"
},
"delay_068": {
"delay": 68.0,
"type": "delay"
},
"delay_069": {
"delay": 69.0,
"type": "delay"
},
"delay_070": {
"delay": 70.0,
"type": "delay"
},
"delay_071": {
"delay": 71.0,
"type": "delay"
},
"delay_072": {
"delay": 72.0,
"type": "delay"
},
"delay_073": {
"delay": 73.0,
"type": "delay"
},
"delay_074": {
"delay": 74.0,
"type": "delay"
},
"delay_075": {
"delay": 75.0,
"type": "delay"
},
"delay_076": {
"delay": 76.0,
"type": "delay"
},
"delay_077": {
"delay": 77.0,
"type": "delay"
},
"delay_078": {
"delay": 78.0,
"type": "delay"
},
"delay_079": {
"delay": 79.0,
"type": "delay"
},
"delay_080": {
"delay": 80.0,
"type": "delay"
},
"delay_081": {
"delay": 81.0,
"type": "delay"
},
"delay_082": {
"delay": 82.0,
"type": "delay"
},
"delay_083": {
"delay": 83.0,
"type": "delay"
},
"delay_084": {
"delay": 84.0,
"type": "delay"
},
"delay_085": {
"delay": 85.0,
"type": "delay"
},
"delay_086": {
"delay": 86.0,
"type": "delay"
},
"delay_087": {
"delay": 87.0,
"type": "delay"
},
"delay_088": {
"delay": 88.0,
"type": "delay"
},
"delay_089": {
"delay": 89.0,
"type": "delay"
},
"delay_090": {
"delay": 90.0,
"type": "delay"
},
"delay_091": {
"delay": 91.0,
"type": "delay"
},
"delay_092": {
"delay": 92.0,
"type": "delay"
},
"delay_093": {
"delay": 93.0,
"type": "delay"
},
"delay_094": {
"delay": 94.0,
"type": "delay"
},
"delay_095": {
"delay": 95.0,
"type": "delay"
},
"delay_096": {
"delay": 96.0,
"type": "delay"
},
"delay_097": {
"delay": 97.0,
"type": "delay"
},
"delay_098": {
"delay": 98.0,
"type": "delay"
},
"delay_099": {
"delay": 99.0,
"type": "delay"
},
"delay_100": {
"delay": 100.0,
"type": "delay"
}
}
}
\ No newline at end of file
#!/usr/bin/env python3
"""Generate simple delay profiles."""
import argparse
import json
def generate_delay_profiles(nb_profiles, output_filename, indent):
"""Generate profiles into output_filename."""
content = {"profiles":
{"delay_{}".format(str(i).zfill(3)): {"type": "delay",
"delay": float(i)}
for i in range(1, nb_profiles + 1)}}
with open(output_filename, 'w') as f:
json.dump(content, f, indent=indent, sort_keys=True)
def main():
"""
Program entry point.
Parses main parameters then calls generate_delay_profiles
"""
script_description = "Generates a lot of delay profiles into a file."
p = argparse.ArgumentParser(description=script_description)
p.add_argument('-n', '--nb-profiles',
type=int,
default=100,
help='The number of different delay profiles to generate')
p.add_argument('-o', '--output',
type=str,
required=True,
help='The output file name')
p.add_argument('-i', '--indent',
type=int,
default=None,
help='The output json indent')
args = p.parse_args()
generate_delay_profiles(args.nb_profiles, args.output, args.indent)
if __name__ == '__main__':
main()
#!/usr/bin/env bash
for (( i=1; i<=100; i++ ))
do
./generate_stupid_workloads.py -n 3 -p delays.json -o workload${i}.json -i 4
done
#!/usr/bin/env python3
"""Generate stupid workloads."""
import argparse
import json
import random
def generate_workload(nb_jobs, input_profiles, nb_res,
output_filename, indent):
"""Generate a workload and writes it into output_filename."""
profile_json = json.load(open(input_profiles, 'r'))
profile_names = [profile for profile in profile_json['profiles']]
walltime = 4200
content = {"nb_res": nb_res,
"jobs": [{"id": i, "subtime": i, "walltime": walltime, "res": 1,
"profile": random.choice(profile_names)}
for i in range(1, nb_jobs + 1)
],
"profiles": profile_json['profiles']
}
with open(output_filename, 'w') as f:
json.dump(content, f, indent=indent, sort_keys=True)
def main():
"""
Program entry point.
Parses the input arguments and call generate_workload.
"""
script_description = "Generates a lot of delay profiles into a file."
p = argparse.ArgumentParser(description=script_description)
p.add_argument('-n', '--nb-jobs',
type=int,
default=100,
help='The number of different delay profiles to generate')
p.add_argument('-p', '--input-profiles',
type=str,
required=True,
help='The input json file containing profiles')
p.add_argument('--nb-res',
type=int,
default=32,
help='The number of resources')
p.add_argument('-o', '--output',
type=str,
required=True,
help='The output file name')
p.add_argument('-i', '--indent',
type=int,
default=None,
help='The output json indent')
args = p.parse_args()
generate_workload(args.nb_jobs, args.input_profiles, args.nb_res,
args.output, args.indent)
if __name__ == '__main__':
main()
{
"jobs": [
{
"id": 1,
"profile": "delay_088",
"res": 1,
"subtime": 1,
"walltime": 4200
},
{
"id": 2,
"profile": "delay_058",
"res": 1,
"subtime": 2,
"walltime": 4200
},
{
"id": 3,
"profile": "delay_014",
"res": 1,
"subtime": 3,
"walltime": 4200
}
],
"nb_res": 32,
"profiles": {
"delay_001": {
"delay": 1.0,
"type": "delay"
},
"delay_002": {
"delay": 2.0,
"type": "delay"
},
"delay_003": {
"delay": 3.0,
"type": "delay"
},
"delay_004": {
"delay": 4.0,
"type": "delay"
},
"delay_005": {
"delay": 5.0,
"type": "delay"
},
"delay_006": {
"delay": 6.0,
"type": "delay"
},
"delay_007": {
"delay": 7.0,
"type": "delay"
},
"delay_008": {
"delay": 8.0,
"type": "delay"
},
"delay_009": {
"delay": 9.0,
"type": "delay"
},
"delay_010": {
"delay": 10.0,
"type": "delay"
},
"delay_011": {
"delay": 11.0,
"type": "delay"
},
"delay_012": {