Tim, Valgrind is great but it is always slow. Instead you can use the AddressSanitizer from clang or gcc. It's much faster than Valgrind but I find the output is harder to read.
Best, Bruno Le lun. 2 oct. 2023 à 02:47, timo Hyvärinen <hyvarinentim...@gmail.com> a écrit : > Hi, Kendrick and Wolfgang, > > Thank you for your reply. > > I have two questions on hand: > (I) How to make the program run faster through Valgrind profiling? I know > I should use cachegrind and callgrind, but I don't know is what things I > should pay attention to from cachegrind/callgrind reports, what properties > have significant impact on speed; > (2) GPU acceleration (this may be a bad question for this thread, but I > really want to ask). I know dealii has CUDA wrapper and Kokkos leverage, > but what I don't know is how I can use them to speed up my matrix-based > newton iteration code. A straightforward idea in my mind is to use GPU for > system-matrix assembly, but I didn't see this in the only cuda tutorial > i.e., step-64. So I wonder what's the common way in deall for using GPU in > matrix-based code. > > Tim, > Sincerely > > On Mon, Oct 2, 2023 at 2:10 AM kendrick zoom <ken420st...@gmail.com> > wrote: > >> Hello Wolfgang, >> How are you doing today? >> >> Well your question is not quite clear. >> So what exactly do you want to know? >> >> On Sun, Oct 1, 2023 at 3:40 PM Wolfgang Bangerth <bange...@colostate.edu> >> wrote: >> >>> On 9/30/23 02:01, timo Hyvärinen wrote: >>> > >>> > So my questions here are (i) Did this issue ever happened for other >>> deal.II >>> > applications, how to solve it expect increase the number of nodes or >>> memory >>> > requirements; (ii) What kind of profiling/debugger tools >>> nowaday's deal.II >>> > experts are using to dress memory issue. Should I build Valgrind by >>> myself? >>> > Does Valgrind only support MPI 2, my openMPI is v.3. >>> >>> Valgrind doesn't care. >>> >>> 6.5*10^5 unknowns with a quadratic element in 3d can probably be >>> expected to >>> take in the range of 2-5 GB. That should fit into most machines. But at >>> the >>> same time, this is a small enough problem that you can run it under >>> valgrind's >>> memory profilers on any workstation or laptop you have access to. You >>> could >>> also talk to the system administrators of the cluster you work on to see >>> whether they are willing to give you a more up to date version of >>> valgrind. >>> >>> Best >>> W. >>> >>> -- >>> ------------------------------------------------------------------------ >>> Wolfgang Bangerth email: bange...@colostate.edu >>> www: >>> http://www.math.colostate.edu/~bangerth/ >>> >>> >>> -- >>> The deal.II project is located at http://www.dealii.org/ >>> For mailing list/forum options, see >>> https://groups.google.com/d/forum/dealii?hl=en >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "deal.II User Group" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to dealii+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/dealii/0e01960a-3886-fc95-8332-a378acc1d7f8%40colostate.edu >>> . >>> >> -- >> The deal.II project is located at http://www.dealii.org/ >> For mailing list/forum options, see >> https://groups.google.com/d/forum/dealii?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "deal.II User Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to dealii+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dealii/CAACKYBj65E817-x1GO%3DN7zrB5Op7X%3DFn1itAovnKaQ60CYyeyg%40mail.gmail.com >> <https://groups.google.com/d/msgid/dealii/CAACKYBj65E817-x1GO%3DN7zrB5Op7X%3DFn1itAovnKaQ60CYyeyg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "deal.II User Group" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/dealii/pkGlpp5uJUE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > dealii+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dealii/CAArwj0FJ1EgswOFeSh2ECHH-GBnx54reEv8wXaT79%3DFL679%3D7w%40mail.gmail.com > <https://groups.google.com/d/msgid/dealii/CAArwj0FJ1EgswOFeSh2ECHH-GBnx54reEv8wXaT79%3DFL679%3D7w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CAGVt9eMsFB3OtNYGnos%3DG-dDKQwHqYJ7waVX3Uc34nOaQEya5Q%40mail.gmail.com.