Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: a particle only test case. #1670

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Open

WIP: a particle only test case. #1670

wants to merge 13 commits into from

Conversation

guj
Copy link
Contributor

@guj guj commented Sep 20, 2024

Particle only test for particles only.

example input file:

encoding=v
fileLocation=joined
maxMil=1
minMil=1
steps=2
joinedArray=true
backend=bp
usePDW=true

To do: simulate a BTD use case

{
m_Rank = rank;
#if defined(__linux)
// m_Name = "/proc/meminfo";

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Comment on lines +151 to +155
/*
m_Silent = silent;
if (!m_Silent)
MemoryProfiler(rank, tag);
*/

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

std::string m_Tag;
int m_Rank = 0;
// bool m_Silent = false;

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
examples/8c_benchmark_ptl_parallel.cpp Fixed Show fixed Hide fixed
for (const auto &[name, p] : m_GlobalProfilers)
{
std::vector<double> result(input.m_MPISize, 0);
// unsigned long buffer[m_Input.m_MPISize];

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
examples/8c_benchmark_ptl_parallel.cpp Fixed Show fixed Hide fixed
Comment on lines +743 to +744
// currSpecies["positionOffset"]["x"].resetDataset(realDataSet);
// currSpecies["positionOffset"]["x"].makeConstant(0.);

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
if (m_Input.m_UseJoinedDim)
return;
}
// Timer g("Gather Particle logistics ", m_Input.m_MPIRank);

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
examples/8c_benchmark_ptl_parallel.cpp Fixed Show fixed Hide fixed
{
std::string filename = argv[1];
std::fstream infile;
infile.open(filename, std::ios::in);

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This argument to a file access function is derived from
user input (a command-line argument)
and then passed to std::basic_fstream<char, char_traits>::open(__s).
This argument to a file access function is derived from
user input (a command-line argument)
and then passed to std::basic_fstream<char, char_traits>::open(__s), which calls std::basic_filebuf<char, char_traits>::open(__s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant