Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Eiad-Big-Data/Main.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (22 sloc)
838 Bytes
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
close all | |
% Explore the data in a .nc file | |
ExploreData | |
% Display memory usage | |
MainMemory | |
% Set a couple of variables to be used later | |
samples =[5000,7500 ,10000] ; | |
numofworkers = [1,2,3,4,5,6,7,8] ; | |
numofhours = 3 ; | |
lenoflist2 = length(numofworkers); | |
lenoflist = length(samples); | |
% A nested for loop to process the data parallelly and sequentially | |
% Test for Nan and text error inside the processing step | |
for kidx = 1 : lenoflist | |
samplesize = samples(kidx) ; | |
for jidx = 1 : lenoflist2 | |
fprintf("Parallel Processing Total data of : %i , Number of Workers : %i , Num of Hours : %i \n" ,samplesize , numofworkers(jidx),numofhours ) | |
numofworkerss = numofworkers(jidx) ; | |
SequentialProcessing(samplesize) | |
ParallelProcessing(numofworkerss,samplesize , numofhours) | |
end | |
end | |