Skip to content

Commit

Permalink
Update scripts for AD
Browse files Browse the repository at this point in the history
  • Loading branch information
altostratous committed Apr 14, 2022
1 parent dc9624a commit ef89a95
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ad_sdc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mkdir -p $DIRECTORY/home
mkdir -p $DIRECTORY/results
mkdir -p $DIRECTORY/data

docker build -t dsn2022paper165/sc .
#docker build -t dsn2022paper165/sc .
#JOBS=`docker run --env SHARD=$SHARD --env INJECTIONS_RANGE="0-$INJECTIONS-1" dsn2022paper165/sc python ./array_count.py`

#docker run -v $DIRECTORY/home/:/root/ -v $DIRECTORY/results/:/code/linearcode/results/ --env SHARD=$SHARD --env INJECTIONS_RANGE="0-$INJECTIONS-1" dsn2022paper165/sc ./pseudo_slurm_map.sh $JOBS
Expand Down
8 changes: 8 additions & 0 deletions build_singularity.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

[email protected]:/home/aasgarik/projects/def-karthikp/aasgarik/reasilience/

singularity build sc.sif docker://dsn2022paper165/sc:latest
scp sc.sif $SLURM_WORKING_DIRECTORY/sc.sif
scp linearcode/script.sh $SLURM_WORKING_DIRECTORY/script.sh
4 changes: 2 additions & 2 deletions linearcode/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,9 @@ def ecc_protection():
coded[0][1] = perturbed[1]
erasure = ec.erasure(coded, checksum, dim=1)
corrected = sc.decode(coded, erasure=erasure, dim=1)
print(corrected[0][0], file=open(get_storage_filename({'txt': 'chipkill_example_corrected_1', },
print(float(corrected[0][0]), file=open(get_storage_filename({'txt': 'chipkill_example_corrected_1', },
extension='.tex', storage='../thesis/data/'), mode='w'))
print(corrected[0][1], file=open(get_storage_filename({'txt': 'chipkill_example_corrected_2', },
print(float(corrected[0][1]), file=open(get_storage_filename({'txt': 'chipkill_example_corrected_2', },
extension='.tex', storage='../thesis/data/'), mode='w'))


Expand Down

0 comments on commit ef89a95

Please sign in to comment.