Commit 294830c
Move CUDA code related to SPH from SofaCUDA to a SofaSphFluid extension (#13)
* r12541/sofa-dev : WARNING: move cuda library into a plugin.
cuda_dev is currently disabled, until it is also moved into a plugin.
//partial sync (239/371 changes)//
Former-commit-id: 76938e8326b59943494ec613633530609a03c340
* r12640/sofa-dev : Move GPU SPH code to SofaCUDA plugin
Former-commit-id: 8b8803f859d5c713990114c543ebb8707ed22edd
* r12738/sofa-dev : FIX: for win32 Cuda configuration: windows needs the export/import declaration
Former-commit-id: 1bbcab170cc46708f160bc89f1d0bc3421ac704b
* r10105/sofa : Completing Rayleigh damping directly in Mass & ForceField Components. For now, geometric stiffnesses are neglicted.
Former-commit-id: db6c2747788da8432dd0135ba4e71899998492e2
* r10771/sofa : Reorganize modules/ by project (BIG CHANGE WARNING)
Files in modules/sofa/component/ were organised only according to the
namespace hierarchy, this commit reorganizes files by project (in the
cmake sense, like, checkboxes in cmake-gui).
E.g. files in
modules/sofa/component/SofaBaseAnimation/
are moved to
modules/BaseAnimation/
Moreover, the "Sofa" prefix is dropped, and the directory structure in
each module is completely flattened, unless a module contains many files.
On the pragmatic side, this changes what you put in:
- include directives: <sofa/component/foo/bar/baz.h> -> <ModuleName/baz.h>
- linker dependencies: SofaBaseCollision -> BaseCollision
But fear not, this commit also provides a script to fix those:
$ ./scripts/fix-modules-includes.sh path/to/your/plugin
This should take care of most changes. Obviously, this will modify your
files, so needless to say, you should save your work beforehand.
It Works on My Machine. Hopefully, it will not wreak havoc on yours.
Oh, also, you should completely rebuild SOFA, because there is no way on
Earth the cmake scripts can handle this.
Former-commit-id: 8b197a3551423ab681a0cdc74b70c1c1d639f2da
* r10777/sofa : Roll back to revision 10770
Moving files around in modules/ might have been premature,
I prefer not to take any more risks and roll back for now.
I will commit again any other modifications that are reverted by this commit.
Former-commit-id: da094ca425052ca336158ecc49ddc1426aa03e6f
* Fix modules includes for the whole repository
Former-commit-id: 590be91bbd1c142bc1f03957517f44a6fff1b7a3
* plugins: replace getX() calls with read()
(and getV(), getX0(), etc)
Former-commit-id: 979c9c168e3faa1bf68816fce2be4b8cb429ffbe
* SofaCUDA: fix compilation
Fix minor issues.
Also, I commented some method specialisations in CudaParticleSource,
because those methods were removed from ParticleSource (they were
deprecated), and I have no idea how to translate them into the
non-deprecated versions.
Former-commit-id: 16734159e3a0d9df2dc02e3845eb7bc81c24468c
* removing all /* PARAMS FIRST */ comments, I cannot see them any longer
Former-commit-id: 723c140367e421db8cf8f91fb38b8b48305d85ad
* [SofaCUDA] fix compilation on mac (clang 3.7, CUDA 7.0)
Former-commit-id: a2f46566ffa73843be5fa1f6ae5320962c65e1c1
* [SofaCUDA] fix compilation on mac (clang 3.7, CUDA 7.0)
Former-commit-id: ce86fd7f466eb071eaa73e216960cd6bf583d591
* applications: clean up some includes
Former-commit-id: de8d090329fdadbc6aa0e35270098c7972114e74
* updated the license.
Signed-off-by: Etienne Schmitt <etienne.schmitt@inria.fr>
Former-commit-id: 1d0c2181ba363fdf8c90534ce61d2829b154d74f
* updating licenses.
Signed-off-by: Etienne Schmitt <etienne.schmitt@inria.fr>
Former-commit-id: 4b6a6d51ae2391fa2a861c26575be03baf3522da
* [SOFA] Update the year 2017 in all file headers
* [SofaCUDA] Update to properly handle the dependency with plugin/SofaSphFluid
* [SofaCUDA] fix compilation
* [All] Update license headers 2018
* [all] Remove all #ifdef SOFA_DEV
In case these SOFA_DEV were usefull to you please make PR in which the removed
code is properly engineered (i.e no #ifdef).
If you don't think using #ifdef is bad don't hesitate to tell it to sofa-dev.
* [All] Remove SOFA_DECL_CLASS and SOFA_LINK_CLASS (#837)
* Minor changes to ease automatic removal of SOFA_FLOAT.
* [all] remove all SOFA_DECL_CLASS & SOFA_LINK_CLASS
* [SofaCUDA] Remove comments that fails.
* [All] Clean blank lines + forgotten macros
* [All] Update license headers 2019
* [SofaCUDA] Fix CudaSPHFluidFF compilation due to Data prefix changes in SPHFluidFF
* [SofaCUDA] Fix CudaParticleSource compilation
* Allowing SofaCUDA to compile without opengl
* fix CUDA collision models
* Update and simplify license header
* [All] Standardize index type for Vector/Matrix templates (#1453)
* harmonize index type for fixed_array/Vec/Mat
* Fix compil with gcc
* Fix some plugins
* fix msvc
* more
* moar
* Fix SPH compil
* Fix compilation and fix issue with rendering (needing uint)
* fix for gcc
* Fix SofaCarving
* Fix Manifold topo plugin
* more
* Fix compil + restore int for matrix
* fix SofaCUDA
* Fix clang
* Continue with indices
* Fix Cuda
* fix with clang + other
* Fix Cuda
* Fix bug
* Fix PointSetTopo and topo tests
* Fix vectypes bug
* Remove some signed/unsigned warnings
* Change BaseVector/Basematrix index to index_type (+fix warnings&co)
* Fix nasty bug with enum being ints
* revert BaseMatrix type to int, as solvers needs int (and i wont change it for now)
* Remove irrelevant tests + change index type for ROI (should fix test)
* Merge remote-tracking branch 'defrost/pr-fix-default-APIVersion' into master-with-upstream-integration
# Conflicts:
# modules/SofaGraphComponent/SceneCheckAPIChange.h
* Merge remote-tracking branch 'defrost/pr-fix-default-APIVersion' into master-with-upstream-integration
# Conflicts:
# modules/SofaGraphComponent/SceneCheckAPIChange.h
* Merge remote-tracking branch 'defrost/pr-fix-default-APIVersion' into master-with-upstream-integration
# Conflicts:
# modules/SofaGraphComponent/SceneCheckAPIChange.h
* [All] Uniform size type (#1515)
Uniform size type to be same type as index_type
move index_type to sofa namespace (in sofa/config.h)
(was located in defaulttype before, does not really make sense)
So now :
index_type is defined as sofa::index_type
size_type is defined as sofa::size_type
* [All] Remove SOFA_NO_OPENGL (not the cmake option) (#1888)
* remove last use of SOFA_NO_OPENGL (except in sofaconfig/framework)
* update image
* add registration and distancegrid
* add sphfluid
* add eulerianfluid (along with a config.h.in)
* add simplegui
* add cuda
* revert eulerianfluid as sofa.gl is required anyway
* fix simplegui
* replace ifdef with if... ==1
* update some config.cmake.in
* image component was still using ogl without guards
* fix compilation for a bunch of plugins without Sofa.GL
* fix compilation
Co-authored-by: Guillaume Paran <guillaume.paran@sofa-framework.org>
* [All] Add forward declaration and opaque API for ExecParams, MechanicalParams, VisualParams and ConstraintParams (#1794)
* [SofaCore] Add forward declarations for parameters.
* [SofaSimulationCore] Add forward declaration.
* [all] Update all the code base to use forward declaration & opaque api.
* [SofaBaseMechanics] Updates two tests to use execparams::defaultInstance()
* [all] Remove commented code
* FIXUP
* [BulletCollisionDetection] Use mechanicalparams::defaultInstance()
* [plugins/PreassembledMass] Use mechanicalparams::defaultInstance()
* [all] Remove the Doxygen style comments "/// From sofa/core/fwd.h"
* [all] Rename asExecParam to dynamicCastToExecParam (to make it constant with other opaque cast nameing)
* [all] Unify all name for cast function.
The names are:
MyObject* castTo<MyObject>(Base*);
Base* castToBase(MyType*);
ExecParams* castToExecParams(OtherParam);
Co-authored-by: Guillaume Paran <guillaume.paran@sofa-framework.org>
* [Sofa.GL] Remove warnings from deprecated headers (#2045)
* use correct headers/namespace for gl stuff
* apply to more plugins
* [All] Remove use of compatibility layer (#2179)
* re-enable warnings when using compat headers
* sofaframework compiles
* sofabase compiles
* sofagl compiles
* modules compiles
* gui compiles
* tests compiles
* image
* plugins
* linux, plugins...
* physicsapi, cuda
* remove more uses
* compiles without sofa.compat
* compiles without sofa.compat with plugins
* Fix headlessrecorder
* fix geomagic
* fix sofaassimp
* fix imagetoolbox
* Fix compilation crash with masses
* Update SofaKernel/modules/Sofa.GL/src/sofa/gl/BasicShapes.h
Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
* restore compat in cmake
* fix compilation
* fix sparseldl
* [All] FIX deprecated includes "sofa/helper/ArgumentParser.h"
# Conflicts:
# applications/projects/SofaFlowVR/Main.cpp
# applications/projects/runSofa/Main.cpp
# applications/tutorials/oneParticle/oneParticle.cpp
* [All] FIX deprecated includes "sofa/helper/ArgumentParser.h" (2)
Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
Co-authored-by: Guillaume Paran <guillaume.paran@sofa-framework.org>
* [SofaCUDA] Remove calls to __umul24 on device (#2715)
* [SofaCUDA] Remove umul24 use
* [SofaCuda] Remove fastmul macro
* [Sofa] Compilation without Compatibility mode (#2975)
** gather compat options in cmake files
* update tests
* clean cmake for compat and fix non-sofang modules (leftovers)
* fix compat and articulated plugin
* fix install file for cimgplugin and sofatest
* re-enable non-sofang module haptic and validation for non-compat mode
* fix haptic and validation tests
* fix sensable emu
* fix: force sofa.component to load everything
* fix msvc
* Apply suggestions from code review (cmake.in fixes)
Co-authored-by: Guillaume Paran <guillaume.paran@sofa-framework.org>
* fix cuda
* update plugins
* fix tests (scenecreator)
Co-authored-by: Frédérick ROY <fred.roy.mr@gmail.com>
Co-authored-by: Guillaume Paran <guillaume.paran@sofa-framework.org>
* [SofaCUDA] Reorganize following SOFA structure (1/n) (#3601)
* Move to mapping folder
* Compatibility layer
* Usual module structure: moduleName/src/moduleName
* [SofaCUDA] Generalize the use of MessageDispatcher in SofaCUDA (#4430)
* [SofaCUDA] Generalize the use of MessageDispatcher in SofaCUDA
* Remove non-required plugin in an example scene
---------
Co-authored-by: Paul Baksic <30337881+bakpaul@users.noreply.github.com>
* [SofaCUDA] Fix spatial grid compilation with double (#4478)
* [all] Apply nested namespaces (#4482)
* [all] Apply nested namespaces
* Fix compilation
* Revert nested namespaces on .cu files to fix compilation
* Fix bad refactoring
* [all] Set of fixes before lifecycle (#5306)
* fix compilation
* Fix compilation in tutorials
* Fix compilation plugin Assimp
* fix compilation again
* Fix compilation, especially using vec_id::write_access
* Complete compilation on Assimp
* fix compilation (cuda with sph)
* fix compilation (cuda with distancegrid)
* Update visitor names
* Fix compilation in OglVolumetricModel
---------
Co-authored-by: Frederick Roy <froy@lnrobo.com>
* [all] Lifecycle : Remove SOFA_ATTRIBUTE_DEPRECATED (part 2) (#5347)
* Remove SOFA_ATTRIBUTE_DEPRECATED__RENAME_DATA_IN_IO_MESH
* Remove SOFA_ATTRIBUTE_DEPRECATED__RENAME_DATA_IN_VISUAL
* Remove SOFA_ATTRIBUTE_DEPRECATED__RENAME_DATA_IN_SETTING
* Cleaning : remove unnecessary includes
* forgotten VEC3STATE_AS_VISUALSTATE
* Remove SOFA_ATTRIBUTE_DEPRECATED__RENAME_DATA_IN_PLAYBACK
* fix compilation
* Remove SOFA_ATTRIBUTE_DEPRECATED__RENAME_DATA_IN_TOPOLOGY_CONTAINER_DYNAMIC
* Remove SOFA_ATTRIBUTE_DEPRECATED__RENAME_DATA_IN_ENGINE_GENERATE
* Remove ALL SOFA_ATTRIBUTE_DEPRECATED__RENAME_DATA*
* Disabling all v24.12 SOFA_ATTRIBUTE_DEPRECATED
* Disable all SOFA_HEADER_DEPRECATED and Fix older lifecycle forgotten
* Disable all SOFA_ATTRIBUTE_DEPRECATED
* forgotten setOriginalData
* complete removal of SparseCommon.cpp
* remove SOFAGENERALLOADER_HAVE_ZLIB compat
* Remove RemovedData d_draw
* fix compilation
* Fix PluginManager_Test
* Fix all uses of vec_id
* Fix compilation: macro didn't exists
* Fix scenes using plane definition in TrianglePressureForceField
---------
Co-authored-by: Frederick Roy <froy@lnrobo.com>
Co-authored-by: Paul Baksic <paul.baksic@outlook.fr>
Co-authored-by: Frederick Roy <fredroy@users.noreply.github.com>
* skeleton for the CUDA extension of SPH
* move files from the sofa structure to the extension structure
* adapt includes
---------
Co-authored-by: Jeremie Allard <jeremie.allard@insimo.fr>
Co-authored-by: Federico Spadoni <federico.spadoni@inria.fr>
Co-authored-by: Matthieu Nesme <matthieu.nesme@inria.fr>
Co-authored-by: Marc Legendre <marc.legendre@inria.fr>
Co-authored-by: Benjamin GILLES <bgilles@scm.gforge.inria.fr>
Co-authored-by: Etienne Schmitt <etienne.schmitt@inria.fr>
Co-authored-by: htalbot <hugo.talbot@inria.fr>
Co-authored-by: Damien Marchal <damien.marchal@univ-lille1.fr>
Co-authored-by: Frederick Roy <frederick.roy@inria.fr>
Co-authored-by: Guillaume Paran <guillaume.paran@inria.fr>
Co-authored-by: Guillaume Paran <guillaume.paran@sofa-framework.org>
Co-authored-by: epernod <erik.pernod@gmail.com>
Co-authored-by: Frederick Roy <fred.roy.me@gmail.com>
Co-authored-by: htalbot <hugo.talbot@sofa-framework.org>
Co-authored-by: Frederick Roy <fredroy@users.noreply.github.com>
Co-authored-by: Frédérick ROY <fred.roy.mr@gmail.com>
Co-authored-by: Paul Baksic <30337881+bakpaul@users.noreply.github.com>
Co-authored-by: Frederick Roy <froy@lnrobo.com>
Co-authored-by: Paul Baksic <paul.baksic@outlook.fr>1 parent 0883603 commit 294830c
24 files changed
Lines changed: 3789 additions & 1 deletion
File tree
- extensions/CUDA
- src/SofaSphFluid/CUDA
- src/SofaSphFluid
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
Lines changed: 132 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments