完成修改
This commit is contained in:
parent
8fff1bc11d
commit
cd54a20086
2
run.sh
2
run.sh
@ -13,7 +13,7 @@
|
||||
|
||||
# 这个存在问题
|
||||
DIR=/pub/data/chenzh/data/sat2022
|
||||
INSTANCE=30ca21da9753263cc8cda020802b58ce-GP_500_200_20.cnf
|
||||
INSTANCE=0d4970edf84353e5a5798bca3f7f270e-SAT_H_instances_childsnack_p10.hddl_2.cnf
|
||||
|
||||
|
||||
# make -j 16 && mpirun --bind-to none -np 9 --allow-run-as-root ./light -i $DIR/$INSTANCE --shuffle=1 --share=1 --threads=16 --times=3600 --share_method=1
|
||||
|
@ -77,7 +77,7 @@ void sharer::share_clauses_to_other_node(int from, const std::vector<shared_ptr<
|
||||
|
||||
} else {
|
||||
|
||||
printf("c node%d(%d) to %d exported lits from network\n", rank, S->worker_type, send_length);
|
||||
// printf("c node%d(%d) to %d exported lits from network\n", rank, S->worker_type, send_length);
|
||||
MPI_Request *send_request = new MPI_Request();
|
||||
// 环形传递
|
||||
MPI_Isend(send_buf.get(), send_length, MPI_INT, next_node, SHARE_CLAUSES_TAG, MPI_COMM_WORLD, send_request);
|
||||
|
@ -255,12 +255,12 @@ int light::run() {
|
||||
}
|
||||
|
||||
void light::seperate_groups() {
|
||||
solver_type = light::LSTECH;
|
||||
solver_type = light::KISSAT;
|
||||
// split distribute nodes to groups(SAT MODE、UNSAT MODE、DEFAULT MODE)
|
||||
int worker_procs = num_procs - 1;
|
||||
|
||||
if(worker_procs >= 8) {
|
||||
int sat_procs = worker_procs / 4;
|
||||
int sat_procs = worker_procs / 8;
|
||||
int unsat_procs = worker_procs / 4;
|
||||
int default_procs = worker_procs - sat_procs - unsat_procs;
|
||||
|
||||
|
@ -43,7 +43,7 @@ void worker_main(light* S, int num_procs, int rank) {
|
||||
MPI_Barrier(MPI_COMM_WORLD);
|
||||
|
||||
// mem_usage per thread per G input file (GB)
|
||||
double mem_ptpg = 20.4;
|
||||
double mem_ptpg = 8.0;
|
||||
|
||||
// mem_usage per thread (GB)
|
||||
double mem_pt = (double)cnf_length / 1073741824 * mem_ptpg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user