Blame src/openpa/README

Packit 0848f5
OpenPA v1.0.3
Packit 0848f5
-------------
Packit 0848f5
Packit 0848f5
The goal of this project is to provide an open source, highly-portable
Packit 0848f5
library that provides atomic primitives (and related constructs) for
Packit 0848f5
high performance, concurrent software. This project is a collaboration
Packit 0848f5
between the Mathematics and Computer Science (MCS) division at Argonne
Packit 0848f5
National Laboratory (ANL) and the HDF Group. The code was originally
Packit 0848f5
derived from work on the MPICH project.
Packit 0848f5
Packit 0848f5
Project documentation and bug tracking can be found at:
Packit 0848f5
Packit 0848f5
  https://trac.mcs.anl.gov/projects/openpa/
Packit 0848f5
Packit 0848f5
If you would like to email questions or discuss topics related to OpenPA
Packit 0848f5
you can send mail to opa-discuss@lists.mcs.anl.gov.
Packit 0848f5
Packit 0848f5
Packit 0848f5
Building 
Packit 0848f5
--------
Packit 0848f5
Packit 0848f5
If you checked out the project from source control then you will need to
Packit 0848f5
generate configure files and makefiles with autogen.sh:
Packit 0848f5
Packit 0848f5
% ./autogen.sh
Packit 0848f5
Packit 0848f5
Otherwise, the build procedure is basically the same as any other
Packit 0848f5
autoconfiscated software:
Packit 0848f5
Packit 0848f5
% ./configure [configure_args]
Packit 0848f5
% make
Packit 0848f5
% make install
Packit 0848f5
Packit 0848f5
OpenPA does support Microsoft Windows but the build system
Packit 0848f5
infrastructure is unfortunately not yet in place for general use.
Packit 0848f5
Packit 0848f5
Packit 0848f5
Supported Platforms
Packit 0848f5
-------------------
Packit 0848f5
Packit 0848f5
The following header files in the src/primitives directory support the
Packit 0848f5
listed platforms:
Packit 0848f5
opa_gcc_ia64.h        - GCC on Intel's IA64 (Itanium) architecture
Packit 0848f5
opa_gcc_intel_32_64.h - GCC (and some GCC-like compilers) on x86 and
Packit 0848f5
                        x86_64 architectures
Packit 0848f5
opa_gcc_intrinsics.h  - GCC on many other platforms.  These use compiler
Packit 0848f5
                        intrinsics which are not always implemented on
Packit 0848f5
                        every platform
Packit 0848f5
opa_gcc_ppc.h         - GCC and IBM's XLC on PowerPC 4xx and 970 systems.
Packit 0848f5
                        Specifically, this supports the modified-PPC440
Packit 0848f5
                        processor in IBM's Blue Gene/P supercomputers and most
Packit 0848f5
                        64-bit PPC machines such as BG/P login nodes and G5
Packit 0848f5
                        Macs.
Packit 0848f5
opa_gcc_sicortex.h    - GCC on SiCortex machines.  This is a MIPS 5K based
Packit 0848f5
                        architecture, so it may work on similar platforms.
Packit 0848f5
opa_nt_intrinsics.h   - Windows support.  These use compiler intrinsics
Packit 0848f5
                        available in Microsoft's Visual Studio compiler.
Packit 0848f5
opa_sun_atomic_ops.h  - Solaris support.  This uses Solaris' built-in
Packit 0848f5
                        atomic operations library.  Tested on a Niagara
Packit 0848f5
                        (T5240) machine with Solaris (s10s_u4wos_12b).
Packit 0848f5
Packit 0848f5
We also support two pseudo-platforms:
Packit 0848f5
Packit 0848f5
opa_by_lock.h - Used when you specify "--with-atomic-primitives=no" or when
Packit 0848f5
                auto-detecting the primitive implementation and lock-based fall
Packit 0848f5
                back is selected.  This uses pthread mutexes to emulate the
Packit 0848f5
                atomic behavior.  This option typically has dramatically slower
Packit 0848f5
                performance on most platforms where native primitives are
Packit 0848f5
                available.  You should usually only use it for testing or on
Packit 0848f5
                platforms where pthreads are available but no native primitives
Packit 0848f5
                are currently implemented.  The library initialization function
Packit 0848f5
                *must* be called when using this primitives implementation.
Packit 0848f5
opa_unsafe.h  - Used when you specify "--with-atomic-primitives=unsafe".  This
Packit 0848f5
                can be used to improve performance in code that uses OPA already
Packit 0848f5
                and is conditionally compiled to be single-threaded without
Packit 0848f5
                having to modify said code.  It is also potentially useful for
Packit 0848f5
                meta-testing to ensure that any threading tests you might have
Packit 0848f5
                will catch bugs when you have a broken atomics implementation.
Packit 0848f5
                The OPA test suite itself fails spectacularly when compiled this
Packit 0848f5
                way.  This header can also be used by defining the preprocessor
Packit 0848f5
                macro OPA_USE_UNSAFE_PRIMITIVES prior to including
Packit 0848f5
                opa_primitives.h.
Packit 0848f5
Packit 0848f5
Known Issues
Packit 0848f5
------------
Packit 0848f5
Packit 0848f5
* One known issue is that the gcc atomic intrinsics aren't supported by
Packit 0848f5
  compilers prior to GCC 4.1.  In particular the default Mac OS X compiler is
Packit 0848f5
  gcc 4.0.1 so these result in a linker error when using this set of
Packit 0848f5
  primitives.  The good news is that on OSX/Intel we use native inline
Packit 0848f5
  assembly anyway, so this isn't a big problem.
Packit 0848f5
* The PGI compilers currently are not supported.  There is at least one known
Packit 0848f5
  bug in the PGI compiler's handling of of inline assembly for which we are
Packit 0848f5
  awaiting a fix from PGI.  Once a fixed version of the compiler is available
Packit 0848f5
  this issue should be rectified in an upcoming release.
Packit 0848f5
* As mentioned earlier, Windows is supported but the build system is not
Packit 0848f5
  yet present.
Packit 0848f5
* We've had reports of trouble with older IA64 machines running GCC 3.2.2.
Packit 0848f5
  Unfortunately we don't have access to a machine with this configuration so we
Packit 0848f5
  have been unable to debug and fix the problem.  Patches and detailed bug
Packit 0848f5
  reports on this issue are very welcome.
Packit 0848f5