Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
df621c16
There was an error fetching the commit references. Please try again later.
Commit
df621c16
authored
9 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Patches
Plain Diff
Adding binding of mesh functions.
parent
d1ef48e7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
TODO
+5
-5
5 additions, 5 deletions
TODO
src/functions/tnlMeshFunction.h
+2
-0
2 additions, 0 deletions
src/functions/tnlMeshFunction.h
src/functions/tnlMeshFunction_impl.h
+11
-0
11 additions, 0 deletions
src/functions/tnlMeshFunction_impl.h
with
18 additions
and
5 deletions
TODO
+
5
−
5
View file @
df621c16
...
@@ -10,6 +10,11 @@ TODO:
...
@@ -10,6 +10,11 @@ TODO:
- data by se na hostu preskupila do souvisleho bloku dat a ten se prenesl najednou
- data by se na hostu preskupila do souvisleho bloku dat a ten se prenesl najednou
TODO:
- zrejme bude potreba udrzovat ke kazdemu objektu jeho obraz na GPU/MIC
- to by zarizovala metoda syncToDevice() napr. kazdy objekt by mel promennou modified, ktera by rikala, jestli se zmenil a zda je nutne ho
prekopirovavat
TODO:
TODO:
- zavest namespaces
- zavest namespaces
...
@@ -21,11 +26,6 @@ TODO: CUDA unified memory
...
@@ -21,11 +26,6 @@ TODO: CUDA unified memory
se s nimi pracovat postaru
se s nimi pracovat postaru
- bylo by dobre to obalit unique poinetry, aby se nemusela delat dealokace rucne
- bylo by dobre to obalit unique poinetry, aby se nemusela delat dealokace rucne
TODO: shared pointery
- mohli bysme pomoci nich odstranit Shared objekty
- asi by bylo lepsi datcounter z shared pointeru primo do array a tento counter by se alokoval az po porvnim sdileni dat
- diky tomu by se array mohlo vytvaret i na gpu bez nutnosti dynamicke alokace, jen by nebylo mozne delat bind (nebo nejaky zjednoduseny)
TODO: Mesh
TODO: Mesh
* vsechny traits zkusit presunout do jednotneho MeshTraits, tj. temer MeshConfigTraits ale pojmenovat jako MeshTraits
* vsechny traits zkusit presunout do jednotneho MeshTraits, tj. temer MeshConfigTraits ale pojmenovat jako MeshTraits
* omezit tnlDimesnionsTag - asi to ale nepujde
* omezit tnlDimesnionsTag - asi to ale nepujde
...
...
This diff is collapsed.
Click to expand it.
src/functions/tnlMeshFunction.h
+
2
−
0
View file @
df621c16
...
@@ -66,6 +66,8 @@ class tnlMeshFunction :
...
@@ -66,6 +66,8 @@ class tnlMeshFunction :
bool
setup
(
const
tnlParameterContainer
&
parameters
,
bool
setup
(
const
tnlParameterContainer
&
parameters
,
const
tnlString
&
prefix
=
""
);
const
tnlString
&
prefix
=
""
);
void
bind
(
ThisType
&
meshFunction
);
template
<
typename
Vector
>
template
<
typename
Vector
>
void
bind
(
const
MeshType
&
mesh
,
void
bind
(
const
MeshType
&
mesh
,
const
Vector
&
data
,
const
Vector
&
data
,
...
...
This diff is collapsed.
Click to expand it.
src/functions/tnlMeshFunction_impl.h
+
11
−
0
View file @
df621c16
...
@@ -133,6 +133,17 @@ setup( const tnlParameterContainer& parameters,
...
@@ -133,6 +133,17 @@ setup( const tnlParameterContainer& parameters,
return
true
;
return
true
;
}
}
template
<
typename
Mesh
,
int
MeshEntityDimensions
,
typename
Real
>
void
tnlMeshFunction
<
Mesh
,
MeshEntityDimensions
,
Real
>::
bind
(
tnlMeshFunction
<
Mesh
,
MeshEntityDimensions
,
Real
>&
meshFunction
)
{
this
->
mesh
=
meshFunction
.
getMesh
();
this
->
data
.
bind
(
meshFunction
.
getData
()
);
}
template
<
typename
Mesh
,
template
<
typename
Mesh
,
int
MeshEntityDimensions
,
int
MeshEntityDimensions
,
typename
Real
>
typename
Real
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment