Click here to Skip to main content
Click here to Skip to main content

HPC Template Library, A Supplement to the STL

By , 19 Apr 2013
 

Introduction

This package is intended to provide the user with threadsafe containers and classes for applications in High Performance Computing (HPC) where parallel programming is commonplace. Today’s multi-core computers bring that parallelism into the realm of everyday use. It is important to provide thread safe containers and classes in this environment. The HPC Template Library (HTL) aims to replace certain portions of the STL. It is a merger and rewrite of classes from the STL, QT, Boost, and SigSlots libraries.  All of the containers are now threadsafe implementing mutexes around critical operations.  It is designed as a dynamic linked library for the user to include directly in their projects. It is written for the Windows platform, although the user could adapt it for use in Linux / Unix by changing only the HtlThread and HtlTime sub packages. The code is designed to be easy to read and well documented. The HTL has 14 sub packages to parcel functionality of different classes. The license for the Library is LGPL.  The source code is also posted on this site. 

HTL Packages Overview

The HTL has 14 sub packages to parcel functionality of different classes. The packages are as follows (listed in alphabetical order). As can be seen, there are a few outlying classes that need to be added, but HTL is mostly operational. The development of unit test code for the library has also commenced and is in the code package. Testing will continue. 

Package Description

Operational Status

HtlArchive: contains all of the classes necessary for serialization and deserialization of objects. It contains a generic archive tree / node system and three different serializer packages (XML, XDL, Binary). 

Archive Model (100%)

XML (100%)

XDL(50%)

Binary(0%) to be added

HtlAtomic: contains a template class that allows for turning any object into an atomic object (threadsafe) via its operators.

(0 %) to be added

HtlBase: contains the base classes for making objects serializable using the HTL system. It also has a base object that is signal slot capable using the HTL sig slots system. – (fully operational)

(100%)

HtlContainer: contains all of the container classes of the HTL (Htl1DVector, Htl2DArray, Htl3DMatrix, HtlMap, etc.). All containers in this set are serializable in the HTL system. – (fully operational)

(90%)  Vectors of complex objects needs testing 

HtlGlobal: contains globally used enumerated types, structs, etc. – (fully operational)

(100%)

HtlGUID: contains the three Global Unique Identifiers (GUID); 64bit, 128bit, and 256bit. – (fully operational)

(100%)

HtlMacro: contains the set of Macros that are allowed in the HTL. HTL makes minimal use of macros because in general macros are a bad programming practice.

(100%)

HtlMath: contains the basic math functions that supplement the STL <math.h> library.

(100%)

HtlRandNumGen: contains a system for random number generators and random distribution generators.

(100%) 

HtlSignalSlot: This is a signals and slots library that is based on the sigslots library. Some changes to the library have been made although.

(100%) 

HtlString: contains the string class that replaces the std::string. They are interoperable, meaning you can go directly between HtlString and std::string.

(100%) 

HtlTest: contains the HTL unit testing system. This is a test name based unit test system similar to boost, but no macros were used in it.

(100%)

HtlThread: contains all thread related classes including mutexes, semaphores, threads, etc.

(75%) semaphore needs to be added and unit testing needed 

HtlTime: contains elapsed time timers and countdown timers.

(50%) countdown timer needs to be added 

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)

About the Author

trident99
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 19 Apr 2013
Article Copyright 2013 by trident99
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid