Commit Graph
153 Commits
Author SHA1 Message Date
camierjs 0ac144c992 Debug cleanup 2020-07-16 14:57:02 -07:00
camierjs 67ae86557a Fix SparseMatrix::DiagScale merge error 2020-07-16 14:54:22 -07:00
camierjs 04eddb884c Missing PA.setup_Grad 2020-07-15 10:25:42 -07:00
camierjs 08f5abc6b2 Merge branch 'master' into tmopt 2020-07-15 09:31:32 -07:00
Tzanio Kolev ae880b4ee8 Merge branch 'master' into yohann/fa 2020-07-14 16:42:03 -07:00
Dylan Copeland c1320238ae Minor changes to MFEM_ABORT_KERNEL. 2020-07-02 10:51:12 -07:00
Dylan Copeland 237905c956 Addressing Veselin's comments about MFEM_ABORT_KERNEL. 2020-06-30 11:15:14 -07:00
camierjs 75db215d3f Cleanup && Meld toward master 2020-06-25 16:21:57 -07:00
camierjs 4b26c2c11d Debug device fix 2020-06-23 10:20:32 -07:00
camierjs 792c50518e tests/unit/miniapps/test_tmop update for debug device 2020-06-09 11:45:44 -07:00
Dylan Copeland 68fd30d2f9 Adding MFEM_ABORT_KERNEL, currently used only in SparseMatrix::DiagScale. 2020-06-08 22:42:48 -07:00
Dylan Copeland e4a6e1c724 Added MFEM_FORALL to SparseMatrix::DiagScale. Made some minor style improvements. 2020-06-08 21:40:11 -07:00
Yohann Dudouit c2de4ee220 Move synchronization inside Print(). 2020-06-08 18:37:11 -07:00
Yohann Dudouit e831e8007b Use OperatorJacobiSmoother in ex9.
- implement GetDiag() for SparseMatrix on device.
2020-06-08 18:10:13 -07:00
Dylan Copeland f5aa751bba Fixed SparseMatrix::DiagScale to work on GPU. 2020-05-28 16:46:41 -07:00
camierjs 4cb9531d6a Cleanup dbg traces 2020-05-28 15:54:14 -07:00
Yohann Dudouit 8ecb802662 More code cleaning. 2020-05-22 19:01:00 -07:00
camierjs 02d8d0a0a5 Sync AssembleElementVectorExact 2020-05-22 15:09:06 -07:00
camierjs 6671a77e34 Diagonal Jtr fix 2020-05-21 14:00:08 -07:00
camierjs 1cbbde8fb6 Renaming & cleanup 2020-05-21 12:05:35 -07:00
camierjs f958b9660b First AddMultGradPA_Kernel_2D sync 2020-05-20 19:55:51 -07:00
Yohann Dudouit 15f6269ad4 Add some debugging prints. 2020-05-20 17:30:42 -07:00
camierjs dbba00715c Flip elmat depending on Eval_I2b vs Det(J) 2020-05-20 16:17:37 -07:00
camierjs 3b1a43de1a WIP AddMultGradPA_Kernel_2D with same elmats 2020-05-20 11:56:39 -07:00
Tzanio 05125e19d5 Removed a space 2020-03-09 15:36:41 -07:00
Tzanio 58872c9e7b Merge branch 'master' into okina-mmu
Conflicts:
	fem/datacollection.cpp
	tests/unit/CMakeLists.txt
2020-03-04 15:19:33 -08:00
Tzanio ca55ef0217 The release number for mfem-4.1 is LLNL-CODE-806117 2020-03-02 17:18:46 -08:00
Tzanio 88a78bb6aa Merge branch 'master' into bsd-relicense
Conflicts:
	CONTRIBUTING.md
2020-03-02 09:28:37 -08:00
camierjs e4d0496931 Merge branch 'master' into okina-mmu 2020-02-29 10:20:37 -08:00
Tzanio 2caa222edf A number of changes to switch the code from LGPL-2.1 to BSD-3:
- Updated LICENSE, README, CHANGELOG and CONTRIBUTING.md
- Removed COPYRIGHT, added NOTICE
- Updated the headers in all source files, makefiles, etc.
2020-02-23 11:16:46 -08:00
camierjs 519a0cbb10 Revert to keep the verify and device disable 2020-02-18 14:32:06 -08:00
camierjs 39d6614642 Revert sample-runs and examples
HIP managed addons
Sparsmat transpose on host
2020-02-18 11:52:00 -08:00
camierjs 4eecaf7625 Revert transpose kernel to stay on host for the atomics 2020-02-15 08:37:13 -08:00
Veselin Dobrev 9499d49e9f Variour tweaks and simplifications, coordinated with @camierjs. 2020-02-14 16:25:40 -08:00
Dylan Copeland a02409f8c9 Removed absolute value in diagonal assembly, by using a new MultTransposeUnsigned function in ElementRestriction. Made some changes for gpu support. 2020-02-03 09:58:28 -08:00
camierjs 0aee38c60c All serial examples with valgrind and debug/host32 allocators 2020-01-31 18:51:31 -08:00
camierjs 8b667b09c4 Simplify MFEM_ENV_DEVICE logic 2020-01-30 10:21:58 -08:00
camierjs 88c40b9705 Wrap picks existing registered host memory type or fall back to MemoryType::HOST 2020-01-29 14:20:10 -08:00
camierjs 764b34c1a8 Cleanup + all tests 2020-01-28 17:44:28 -08:00
camierjs 822e2be19d Merge branch 'master' into okina-mmu 2020-01-21 20:35:44 -08:00
Tzanio 5534584ef8 Merge branch 'master' into rectop-bc-dev 2020-01-08 16:44:22 -08:00
camierjs 47f2aa0de7 Merge branch 'master' into okina-mmu 2019-12-16 17:59:40 -08:00
camierjs bf2d1eb59a Cuda, debug examples but last mt 2019-11-25 15:31:54 -08:00
Julian Andrej c84af9586d first step picking hunks for rectangular operators 2019-11-18 16:49:44 -08:00
Veselin Dobrev 6e457ec497 Fix a few issues related to using the classes SparseMatrix,
HypreParVector, HypreParMatrix, and HypreSmoother with GPU backends.

Add 2 versions of a new method: Vector::MakeRef -- one that takes
a Vector and an offset and another that takes a Vector, an offset
and a new size.

Add some simple debugging tools:
 * Add a new output "trace" stream: mfem::trc. By default, the output
   of mfem::trc goes to std::cout; the new function mfem::OpenTraceFile()
   can be used to redirect the output of mfem::trc to a file called
   'mfem-trace-<pid>' where <pid> is the process id. Note that this
   function can be called from a debugger.
 * In class Vector, add a new method Vector::PrintTrace() that prints a
   Vector to the mfem::trc stream -- this method can be called from a
   debugger, unlike Vector::Print with mfem::trc as argument (at least
   in gdb this did not work).
 * In class Memory<T>, add 2 new methods: PrintFlags() and
   CompareHostAndDevice() which are explicitly instantiated for T=int
   and T=double, so that they can be called inside a debugger for
   these two types.
2019-06-17 18:55:17 -07:00
camierjs bd08fa9592 Merge branch 'memory-dev' of github.com:mfem/mfem into memory-dev 2019-05-24 14:21:12 -07:00
camierjs 283264ade4 {Read,Write,ReadWrite}Access => {Read,Write,ReadWrite}
Add shortcut for Host{Read,Write,ReadWrite}
2019-05-24 14:08:45 -07:00
Tzanio e36d1ea8fd Several change to (hopefully) simplify the interface:
* The parameter of Vector::UseDevice(bool) no longer has a default value. All
  the calls to UseDevice() in operator.cpp bilinearform_ext.cpp gridfunc.?pp and
  linearform.?pp have been replaced with UseDevice(true).

* Added shortcuts for the device flags of the Memory objects inside the Vector
  and Array classes:

    bool Array::UseDevice()
    bool Vector::UseDevice()

* The internal device flag in Memory::FlagMask is now called USE_DEVICE (it was
  previously called EXEC_FLAG). The accessor function for this flag have been
  renamed:

    bool Memory::GetExecFlag()     -> bool Memory::UseDevice()
    void Memory::SetExecFlag(bool) -> void Memory::UseDevice(bool)

* Further renamed:

    Memory::SyncWith         -> Memory::Sync
    Memory::SyncAliasToBase  -> Memory::SyncAlias
    Memory::SyncAliasToBase_ -> Memory::SyncAlias_

* Replaced FIXME with TODO in general/mem_manager.cpp
2019-05-24 14:01:15 -07:00
Veselin Dobrev 798ded1f55 Merge branch 'master' into memory-dev 2019-05-22 23:53:04 -07:00
Veselin Dobrev 534bf51466 Addressing some of the PR feedback. 2019-05-21 02:19:05 -07:00