Skip to content

Commit 86afc5b

Browse files
authored
Merge pull request #474 from deepmodeling/master
update devel with master
2 parents 3bc3269 + da49465 commit 86afc5b

File tree

10 files changed

+214
-4
lines changed

10 files changed

+214
-4
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report to help us eliminate issues and improve dpgen. If this
4+
doesn’t look right, [choose a different type](https://github.com/deepmodeling/dpgen/issues/new/choose).
5+
title: "[BUG] _Replace With Suitable Title_"
6+
labels: bug
7+
assignees: ''
8+
9+
---
10+
11+
**Summary**
12+
13+
<!--Please provide a clear and concise description of what the bug is.-->
14+
15+
**DPGEN Version and Platform**
16+
17+
<!--Please specify precisely which DPGEN version this issue was detected with ("import dpgen" in the python command line interface and type "print(dpgen.__version__)") and what platform (operating system and its version, hardware) you are running on.-->
18+
19+
**Job submission and computing cluster configuration**
20+
21+
<!--If the question is about job submission, Please specify your jobs submission system and your authority. If applicable, specify your computing system configurations as well.-->
22+
23+
**Expected Behavior**
24+
25+
<!--Describe the expected behavior. Quote from the DPGEN manual where needed, or explain why the expected behavior is meaningful, especially when it differs from the manual-->
26+
27+
**Actual Behavior**
28+
29+
<!--Describe the actual behavior, how it differs from the expected behavior, and how this can be observed. Try to be specific and do **not** use vague terms like "doesn't work" or "wrong result". Do not assume that the person reading this has any experience with or knowledge of your specific area of research.-->
30+
31+
**Steps to Reproduce**
32+
33+
<!--Describe the steps required to (quickly) reproduce the issue. You can attach (small) files to the section below or add URLs where to download an archive with all necessary files. Please try to create an input set that is as minimal and small as possible and reproduces the bug as quickly as possible. **NOTE:** the less effort and time it takes to reproduce your reported bug, the more likely it becomes, that somebody will look into it and fix the problem.-->
34+
35+
**Further Information, Files, and Links**
36+
37+
<!--Put any additional information here, attach relevant text or image files and URLs to external sites, e.g. relevant publications-->
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project. If this doesn’t work right, [choose a different
4+
type]( https://github.com/deepmodeling/dpgen/issues/new/choose).
5+
title: "[Feature Request] _Replace with Title_"
6+
labels: new feature
7+
assignees: ''
8+
9+
---
10+
11+
**Summary**
12+
13+
<!--Please provide a brief and concise description of the suggested feature or change-->
14+
15+
**Detailed Description**
16+
17+
<!--Please explain how you would like to see DPGEN enhanced, what feature(s) you are looking for, what specific problems this will solve. If possible, provide references to relevant background information like publications or web pages, and whether you are planning to implement the enhancement yourself or would like to participate in the implementation. If applicable add a reference to an existing bug report or issue that this will address.-->
18+
19+
**Further Information, Files, and Links**
20+
21+
<!--Put any additional information here, attach relevant text or image files and URLs to external sites, e.g. relevant publications-->
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Generic issue
3+
about: For issues that do not fit any of the other categories. If this doesn’t work
4+
right, [choose a different type]( https://github.com/deepmodeling/dpgen/issues/new/choose).
5+
title: _Replace With a Descriptive Title_
6+
labels: wontfix
7+
assignees: ''
8+
9+
---
10+
11+
**Summary**
12+
13+
<!--Please provide a clear and concise description of what the question is.-->
14+
15+
**DPGEN Version and Platform**
16+
17+
<!--Please specify precisely which DPGEN version this issue was detected with ("import dpgen" in the python command line interface and type "print(dpgen.__version__)") and what platform (operating system and its version, hardware) you are running on.-->
18+
19+
**Job submission and computing cluster configuration**
20+
21+
<!--If the question is about job submission, Please specify your jobs submission system and your authority. If applicable, specify your computing system configurations as well.-->
22+
23+
**Details**
24+
25+
<!--Please explain the issue in detail here-->
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Parameters
3+
about: Make a suggestion for a change of input parameters or a new output to dpgen.
4+
If this doesn’t work right, [choose a different type]( https://github.com/deepmodeling/dpgen/issues/new/choose).
5+
title: "[Parameters] _Replace With Suitable Title_"
6+
labels: documentation, enhancement
7+
assignees: ''
8+
9+
---
10+
11+
**Summary**
12+
13+
<!--Please provide a clear and concise description of what your request is.-->
14+
15+
**Summary**
16+
17+
<!--Please provide a brief and concise description of the suggested feature or change-->
18+
19+
**Detailed Description**
20+
21+
<!--Please explain how you would like to see dpgen enhanced. Specify your material system, and exactly what behaviors or properties you are looking for, or what specific problems this will solve. If possible, provide references to relevant background information like publications or web pages, and whether you are planning to implement the enhancement yourself or would like to participate in the implementation.-->
22+
23+
**Further Information, Files, and Links**
24+
25+
<!--Put any additional information here, attach relevant text or image files and URLs to external sites, e.g. relevant publications-->
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Request for Help
3+
about: Don't post help requests here, go to [discussions](http://github.com/deepmodeling/dpgen/discussions)
4+
instead. Or [choose a different type]( https://github.com/deepmodeling/dpgen/issues/new/choose).
5+
title: ''
6+
labels: ''
7+
assignees: ''
8+
9+
---
10+
11+
Before asking questions, you can
12+
13+
search the previous issues or discussions
14+
check [Manual](https://github.com/deepmodeling/dpgen).
15+
16+
Please **do not** post requests for help (e.g. with installing or using dpgen) here.
17+
Instead go to [discussions](https://github.com/deepmodeling/dpgen/discussions).
18+
19+
This issue tracker is for tracking dpgen development related issues only.
20+
21+
Thanks for your cooperation.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
## About DP-GEN
2222

2323
[![GitHub release](https://img.shields.io/github/release/deepmodeling/dpgen.svg?maxAge=86400)](https://github.com/deepmodeling/dpgen/releases/)
24-
[![doi:10.1016/j.cpc.2020.107206](https://zenodo.org/badge/DOI/10.1016/j.cpc.2020.107206.svg)](https://doi.org/10.1016/j.cpc.2020.107206)
24+
[![doi:10.1016/j.cpc.2020.107206](https://img.shields.io/badge/DOI-10.1016%2Fj.cpc.2020.107206-blue)](https://doi.org/10.1016/j.cpc.2020.107206)
25+
[![conda install](https://img.shields.io/conda/dn/conda-forge/dpgen?label=conda%20install)](https://anaconda.org/conda-forge/dpgen)
26+
[![pip install](https://img.shields.io/pypi/dm/dpgen?label=pip%20install)](https://pypi.org/project/dpgen)
2527

2628
DP-GEN (Deep Generator) is a software written in Python, delicately designed to generate a deep learning based model of interatomic potential energy and force field. DP-GEN is depedent on DeepMD-kit (https://github.com/deepmodeling/deepmd-kit/blob/master/README.md). With highly scalable interface with common softwares for molecular simulation, DP-GEN is capable to automatically prepare scripts and maintain job queues on HPC machines (High Performance Cluster) and analyze results.
2729

dpgen/auto_test/Lammps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self,
1717
self.inter_type = inter_parameter['type']
1818
self.type_map = inter_parameter['type_map']
1919
self.in_lammps = inter_parameter.get('in_lammps', 'auto')
20-
if self.type_map == 'meam':
20+
if self.inter_type == 'meam':
2121
self.model = list(map(os.path.abspath, inter_parameter['model']))
2222
else:
2323
self.model = os.path.abspath(inter_parameter['model'])

dpgen/dispatcher/PBS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def check_status(self) :
1616
= self.context.block_call ("qstat " + job_id)
1717
err_str = stderr.read().decode('utf-8')
1818
if (ret != 0) :
19-
if str("qstat: Unknown Job Id") in err_str :
19+
if str("qstat: Unknown Job Id") in err_str or str("Job has finished") in err_str:
2020
if self.check_finish_tag() :
2121
return JobStatus.finished
2222
else :

dpgen/generator/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2307,7 +2307,7 @@ def post_fp_vasp (iter_index,
23072307
dlog.info("failed frame: %6d in %6d %6.2f %% " % (icount, tcount, rfail * 100.))
23082308

23092309
if rfail>ratio_failed:
2310-
raise RuntimeError("find too many unsuccessfully terminated jobs")
2310+
raise RuntimeError("find too many unsuccessfully terminated jobs. Too many FP tasks are not converged. Please check your input parameters (e.g. INCAR) or configuration (e.g. POSCAR) in directories \'iter.*.*/02.fp/task.*.*/.\'")
23112311

23122312

23132313
def post_fp_pwscf (iter_index,
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"_comment" : "This is an example of DP-GEN on Local device running with 4 GPUs",
3+
"_comment" : "Last updated on 2021.5.9 for DP-GEN 0.9.2 by Ke XU",
4+
"train": [
5+
{
6+
"_comment" : "Specify the installed path of DeePMD-kit",
7+
"_comment" : "The version of DeePMD-kit should be 1.*",
8+
"command": "/home/user/anaconda3/bin/dp",
9+
"_comment" : "Specify machine settings",
10+
"machine": {
11+
"_comment" : "Supported batches include slurm, pbs, shell, lsf.",
12+
"batch": "shell",
13+
"work_path": "/tmp/dpwork",
14+
"_comment": "that's all"
15+
},
16+
"resources":{
17+
"_comment" : "The number of nodes.",
18+
"numb_node": 1,
19+
"_comment" : "If you choose to run with multiple GPUs simultaneously, just ignore numb_gpu.",
20+
"numb_gpu": 0,
21+
"_comment" : "The number of CPUs.",
22+
"task_per_node": 4,
23+
"_comment" : "The number of GPUs that can be used for each task.",
24+
"manual_cuda_devices": 4,
25+
"_comment" : "The number of tasks that can be run in each GPU.",
26+
"manual_cuda_multiplicity":1,
27+
"_comment" : "Allow the multi-GPU task running.",
28+
"cuda_multi_task": true,
29+
"module_list": [],
30+
"_comment" : "Environment to be activated. This will generate source xxx/psxevars.sh in scripts. ",
31+
"source_list": ["/opt/intel/parallel_studio_xe_2020/psxevars.sh"]
32+
},
33+
"_comment" : "DP-GEN will put 4 tasks together in one submitting script.",
34+
"group_size": 4
35+
}
36+
],
37+
38+
"model_devi": [
39+
{
40+
"machine": {
41+
"batch": "shell",
42+
"work_path": "/tmp/dpwork"
43+
},
44+
"resources": {
45+
"numb_node": 1,
46+
"numb_gpu": 0,
47+
"task_per_node": 4,
48+
"manual_cuda_devices": 4,
49+
"manual_cuda_multiplicity":1,
50+
"cuda_multi_task": true,
51+
"source_list": [],
52+
"module_list": []
53+
},
54+
"command": "/home/user/Soft/Deepmd/lammps-stable_29Oct2020/src/lmp_mpi",
55+
"group_size": 4
56+
}
57+
],
58+
59+
"fp": [
60+
{
61+
"machine": {
62+
"batch": "shell",
63+
"work_path": "/tmp/dpwork"
64+
},
65+
"resources": {
66+
"allow_failure": true,
67+
"ratio_failue": 0.05,
68+
"task_per_node": 16,
69+
"with_mpi": true,
70+
"_comment" : "Load the intel compiler.",
71+
"source_list": ["/opt/intel/parallel_studio_xe_2020/psxevars.sh"],
72+
"envs": {"PATH" : "/home/user/Soft/VASP/vasp.5.4.4-allbak/bin:$PATH"},
73+
"_comment" : "This will generate export PATH=/home/user/Soft/VASP/vasp.5.4.4-allbak/bin:$PATH in scripts;"
74+
},
75+
"command": "vasp_std",
76+
"group_size": 1
77+
}
78+
]
79+
}

0 commit comments

Comments
 (0)