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

HPC Template Library, A Supplement to the STL

, 7 Jul 2014
Rate this:
Please Sign up or sign in to vote.
The HPC Template Library is a supplement to the Standard Template Library providing threadsafe containers.

Author: Anthony Daniels

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(100%)

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, Htl1DList, Htl2DArray, Htl3DMatrix,  HtlListMap, HtlMap, etc.). All containers in this set are serializable in the HTL system. – (fully operational)

(100%)  

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.

(100%)

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)

Share

About the Author

trident99

United States United States
No Biography provided

Comments and Discussions

 
GeneralMy vote of 5 PinprofessionalManikandan1012-Jul-14 2:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140821.2 | Last Updated 7 Jul 2014
Article Copyright 2013 by trident99
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid