-
Notifications
You must be signed in to change notification settings - Fork 244
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
Successfully Running **ck_version** and **sycl_version** of Soil Mechanics #715
base: master
Are you sure you want to change the base?
Conversation
@Xiangyu-Hu Thank you again for your support during the holiday season, and I wish you a Merry Christmas! |
@ShuangLi-1 Linux (g++) build is quite strict, and requires even no warning message. You can try to build using g++ locally first. |
…rors where the initialization order is different from the definition order
|
I have modified the code to avoid the issue where the initialization order of variables differs from the definition order, as mentioned in the error message in this PR. Locally, I can successfully compile and run Perhaps further testing can be performed. |
<< interval_computing_time_step.seconds() << "\n"; | ||
std::cout << std::fixed << std::setprecision(9) << "interval_updating_configuration = " | ||
<< interval_updating_configuration.seconds() << "\n"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need have a regression test like
SPHinXsys/tests/2d_examples/test_2d_column_collapse/column_collapse.cpp
Lines 223 to 230 in a2df28d
if (sph_system.GenerateRegressionData()) | |
{ | |
write_mechanical_energy.generateDataBase(1.0e-3); | |
} | |
else if (sph_system.RestartStep() == 0) | |
{ | |
write_mechanical_energy.testResult(); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added it and pushed it. But I don't know how to test it on my own computer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to copy the data files to here from the CPU version of this case.
tests/2d_examples/test_2d_column_collapse/regression_test_tool
So that the regression test can be carried out automatically when you run the case.
Based on your previous guidance, I have re-debugged and corrected the ck_version and sycl_version of the soil mechanics module.
The issue was caused by a division by zero in the constitutive equation calculations, which I have now fixed. Thanks for your guidance.
Additionally, I have created two cases:
On my computer, these cases can run successfully in Release mode, and the GPU is being utilized correctly. Please check them at your convenience.
Supplementary Notes
Simulation Results and GPU Utilization
Figure 1: GPU utilization during computation.
Figure 2: Simulation results.