-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Dead-fisher/master
Add unittests. Make it running on localhost
- Loading branch information
Showing
77 changed files
with
15,515 additions
and
1,272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: rid python package test | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
Unittest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup package | ||
run: | | ||
wget -q https://github.com/Dead-fisher/rid-kit/releases/download/v1.0/gromacs-dp-rid-0.0.5-float-gpu-Linux-x86_64.sh > download.log | ||
sh gromacs-dp-rid-0.0.5-float-gpu-Linux-x86_64.sh | ||
export PATH="$HOME/gromacs-dp-rid/bin:$PATH" | ||
which python | ||
pip install numpy | ||
pip install sklearn | ||
pip install dpdispatcher | ||
pip install mock | ||
- name: Run unittest | ||
run: | | ||
export PATH="$HOME/gromacs-dp-rid/bin:$PATH" | ||
cd ./tests | ||
python -m unittest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
__pycache__ | ||
*.pyc | ||
.nfs* | ||
rid.egg-info | ||
*.egg | ||
dist | ||
build | ||
.gitignore | ||
rid/old | ||
markdown.py | ||
examples/__pycache__ | ||
examples/logs | ||
examples/test* | ||
examples/*.slurm | ||
examples/context.py | ||
examples/dpdisp.log | ||
example_for_plumed | ||
tests/dpdisp.log | ||
tests/scrip_tt.py | ||
tests/__pycache__ | ||
rid.egg-info |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"_comment": "system resources", | ||
|
||
|
||
"enhcMD": { | ||
"machine":{ | ||
"batch_type": "Shell", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": "shell", | ||
"number_node": 0, | ||
"cpu_per_node": 0, | ||
"gpu_per_node": 1, | ||
"group_size": 1, | ||
"if_cuda_multi_devices": false | ||
} | ||
}, | ||
|
||
"post_enhc": { | ||
"machine":{ | ||
"batch_type": "Shell", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": "shell", | ||
"number_node": 0, | ||
"cpu_per_node": 0, | ||
"gpu_per_node": 0, | ||
"group_size": 1, | ||
"if_cuda_multi_devices": false | ||
} | ||
}, | ||
|
||
"resMD": { | ||
"machine":{ | ||
"batch_type": "Shell", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": "shell", | ||
"number_node": 0, | ||
"cpu_per_node": 0, | ||
"gpu_per_node": 1, | ||
"group_size": 10, | ||
"if_cuda_multi_devices": false | ||
} | ||
}, | ||
|
||
"cmpf": { | ||
"machine":{ | ||
"batch_type": "Shell", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": "shell", | ||
"number_node": 0, | ||
"cpu_per_node": 0, | ||
"gpu_per_node": 0, | ||
"group_size": 1000, | ||
"if_cuda_multi_devices": false | ||
} | ||
}, | ||
|
||
"train": { | ||
"machine":{ | ||
"batch_type": "Shell", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": "shell", | ||
"number_node": 0, | ||
"cpu_per_node": 0, | ||
"gpu_per_node": 1, | ||
"group_size": 1, | ||
"if_cuda_multi_devices": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"_comment": "system resources", | ||
|
||
|
||
"enhcMD": { | ||
"machine":{ | ||
"batch_type": "Slurm", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": "GPU_2080Ti", | ||
"number_node": 1, | ||
"cpu_per_node": 8, | ||
"gpu_per_node": 1, | ||
"group_size": 1, | ||
"if_cuda_multi_devices": false | ||
} | ||
}, | ||
|
||
"post_enhc": { | ||
"machine":{ | ||
"batch_type": "Slurm", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": "GPU_2080Ti", | ||
"number_node": 1, | ||
"cpu_per_node": 4, | ||
"gpu_per_node": 0, | ||
"group_size": 1, | ||
"if_cuda_multi_devices": false | ||
} | ||
}, | ||
|
||
"resMD": { | ||
"machine":{ | ||
"batch_type": "Slurm", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": "GPU_2080Ti", | ||
"number_node": 1, | ||
"cpu_per_node": 8, | ||
"gpu_per_node": 1, | ||
"group_size": 10, | ||
"if_cuda_multi_devices": false | ||
} | ||
}, | ||
|
||
"cmpf": { | ||
"machine":{ | ||
"batch_type": "Shell", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": null, | ||
"number_node": null, | ||
"cpu_per_node": null, | ||
"gpu_per_node": 0, | ||
"group_size": 1000, | ||
"if_cuda_multi_devices": false | ||
} | ||
}, | ||
|
||
"train": { | ||
"machine":{ | ||
"batch_type": "Slurm", | ||
"context_type": "LazyLocalContext", | ||
"local_root": "./", | ||
"remote_root": "./" | ||
}, | ||
"resources":{ | ||
"queue_name": "GPU_2080Ti", | ||
"number_node": 1, | ||
"cpu_per_node": 8, | ||
"gpu_per_node": 1, | ||
"group_size": 1, | ||
"if_cuda_multi_devices": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.