Final MPI Calculations here
This commit is contained in:
@@ -7,6 +7,12 @@ dsp_options.start_occurence = 1;
|
||||
dsp_options.max_occurences = 15;
|
||||
dsp_options.debug_plots = false;
|
||||
|
||||
write_mpi_reduction_db = 1;
|
||||
stream_mpi_reduction_db = 1;
|
||||
mpi_reduction_study_name = "block_update_sweep";
|
||||
mpi_reduction_writer_path = fullfile(fileparts(mfilename('fullpath')),"db");
|
||||
addpath(mpi_reduction_writer_path);
|
||||
|
||||
dsp_options.database_type = "mysql";
|
||||
|
||||
dsp_options.dataBase = "labor";
|
||||
@@ -16,6 +22,9 @@ dsp_options.server = "192.168.178.192";
|
||||
dsp_options.port = 3306;
|
||||
dsp_options.user = "silas";
|
||||
dsp_options.password = "silas";
|
||||
dsp_options.append_mpi_reduction_db = write_mpi_reduction_db && stream_mpi_reduction_db;
|
||||
dsp_options.mpi_reduction_study_name = mpi_reduction_study_name;
|
||||
dsp_options.mpi_reduction_writer_path = mpi_reduction_writer_path;
|
||||
|
||||
db = DBHandler("dataBase", [dsp_options.dataBase],...
|
||||
"type", dsp_options.database_type,...
|
||||
@@ -45,7 +54,6 @@ for i = 1
|
||||
|
||||
[dataTable,~] = db.queryDB(fp, db.getTableFieldNames('Runs'));
|
||||
|
||||
|
||||
[~, sortIdx] = sort(dataTable.sir, 'descend');
|
||||
dataTable = dataTable(sortIdx, :);
|
||||
|
||||
@@ -55,11 +63,10 @@ for i = 1
|
||||
|
||||
%% === Warehouse setup ===
|
||||
dsp_options.userParameters = struct();
|
||||
dsp_options.userParameters.block_update = 1;%[1,2,4,8,16,32,64,112,224,448,512,1024,2048,2048*2,2048*4];%%logspace(-3.8,-1,22);%[linspace(2,4096,22)];
|
||||
dsp_options.userParameters.block_update = [1,2,4,8,16,32,64,112,224,448,448*2,1024,2048,4096,8192,16384];%%logspace(-3.8,-1,22);%[linspace(2,4096,22)];
|
||||
% dsp_options.userParameters.block_update = linspace(1,224,22);
|
||||
wh = DataStorage(dsp_options.userParameters);
|
||||
|
||||
|
||||
%%
|
||||
n_realizations = (dsp_options.max_occurences - dsp_options.start_occurence + 1);
|
||||
n_userparams = prod(wh.dim);
|
||||
@@ -76,6 +83,14 @@ for i = 1
|
||||
[results, wh] = submitJobs(run_ids, dsp_options, processingMode.parallel, ...
|
||||
"wh", wh, ...
|
||||
"waitbar", true);
|
||||
|
||||
%%
|
||||
|
||||
if write_mpi_reduction_db && ~stream_mpi_reduction_db
|
||||
db.refresh();
|
||||
appendMpiReductionWarehouse(db, wh, run_ids, dsp_options, ...
|
||||
"study_name", mpi_reduction_study_name);
|
||||
end
|
||||
|
||||
% savepath = fullfile("C:","Users","Silas","Documents","MATLAB","imdd_simulation","projects","Diss","MPI_revisit","algorithms",sprintf("pam_%d_results.mat",M));
|
||||
% save(wh,savepath)
|
||||
|
||||
Reference in New Issue
Block a user