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
01221b2f
There was an error fetching the commit references. Please try again later.
Commit
01221b2f
authored
6 years ago
by
Nina Džugasová
Browse files
Options
Downloads
Patches
Plain Diff
Only small adjustments.
parent
4e387085
No related branches found
No related tags found
1 merge request
!15
Nina
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/TNL/Containers/List.h
+3
-1
3 additions, 1 deletion
src/TNL/Containers/List.h
src/TNL/File.h
+6
-1
6 additions, 1 deletion
src/TNL/File.h
src/TNL/Logger.h
+1
-1
1 addition, 1 deletion
src/TNL/Logger.h
src/TNL/Timer.h
+12
-4
12 additions, 4 deletions
src/TNL/Timer.h
with
22 additions
and
7 deletions
src/TNL/Containers/List.h
+
3
−
1
View file @
01221b2f
...
...
@@ -112,7 +112,9 @@ template< class T > class List
/// Erases all data elements.
void
reset
();
/// Erases all data elements with contained data.
/// \brief Erases all data elements with contained data.
///
/// Frees dynamicaly allocated data inside the data elements
void
DeepEraseAll
();
/// Saves the list in binary format.
...
...
This diff is collapsed.
Click to expand it.
src/TNL/File.h
+
6
−
1
View file @
01221b2f
...
...
@@ -38,6 +38,11 @@ const size_t FileGPUvsCPUTransferBufferSize = 5 * 2<<20;
/// Class file is aimed mainly for the binary data.
///
/// \par Example
/// \include FileExample.cpp
// \par Output
// \include FileExample.out
class
File
{
IOMode
mode
;
...
...
@@ -91,7 +96,7 @@ class File
/// \brief Method that can write particular data type from given file into GPU. (Function that gets particular elements from given file.)
///
/// Returns boolean value based on the succes in reading elements from given file.
/// \param buffer Pointer in memory.
/// \param buffer Pointer in memory
(where the read elements are stored?)
.
/// \param elements Number of elements the user wants to get (read) from given file.
template
<
typename
Type
,
typename
Device
=
Devices
::
Host
,
typename
Index
=
int
>
bool
read
(
Type
*
buffer
,
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Logger.h
+
1
−
1
View file @
01221b2f
...
...
@@ -23,7 +23,7 @@ class Logger
/// \brief Basic constructor.
///
/// \param _width Integer that defines the width of logger.
/// \param _stream Where to create the logger, e.g. cout or a certain file
.
s
/// \param _stream Where to create the logger, e.g. cout or a certain files
.
Logger
(
int
_width
,
std
::
ostream
&
_stream
);
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Timer.h
+
12
−
4
View file @
01221b2f
...
...
@@ -15,7 +15,12 @@ namespace TNL {
class
Logger
;
/// \brief Class for time measuring
/// \brief Class for time measuring.
///
/// \par Example
/// \include TimerExample.cpp
// \par Output
// \include TimerExample.out
class
Timer
{
public:
...
...
@@ -48,7 +53,8 @@ class Timer
/// The timer then continues measuring the time without reseting.
void
start
();
/// \brief Returs the real (clock/timer) time.
/////
/// \brief Returs the elapsed time on given timer.
///
/// It returns the elapsed time between calling the start() and stop() functions.
/// Starts counting the real time after the function start() is called and
...
...
@@ -61,7 +67,7 @@ class Timer
double
getRealTime
()
const
;
/////
/// \brief Returns the
CPU time
.
/// \brief Returns the
elapsed CPU time on given timer
.
///
/// CPU time is the time that measures how long it takes processor
/// to complete all computations.
...
...
@@ -78,7 +84,9 @@ class Timer
protected:
/// Function for measuring the real time.
/// \brief Function for measuring the real time.
///
/// Returns the current calendar time.
double
readRealTime
()
const
;
/// \brief Function for measuring the CPU time.
...
...
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