MorphoGraphX  2.0-1-227
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
Cuda.hpp File Reference
#include <Config.hpp>
#include <thrust/version.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/device_ptr.h>
#include <CudaGlobal.hpp>
#include <Geometry.hpp>
#include <ThrustTypes.hpp>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  mgx::HoldMem
 

Namespaces

 mgx
 Distributed matrix library.
 

Macros

#define COMPILE_CUDA
 
#define MByte
 

Typedefs

typedef thrust::device_ptr< int > mgx::DevicePi
 
typedef thrust::device_ptr< uintmgx::DevicePui
 
typedef thrust::device_ptr< double > mgx::DevicePd
 
typedef thrust::device_ptr< Point3d > mgx::DeviceP3d
 
typedef thrust::device_ptr< Matrix3d > mgx::DevicePM3d
 
typedef thrust::counting_iterator< int, thrust::device_space_tag > mgx::DCountIter
 

Enumerations

enum  mgx::DimEnum {
  mgx::X, mgx::Y, mgx::Z, mgx::XY,
  mgx::YZ, mgx::XZ, mgx::XYZ
}
 

Functions

bool mgx::progressAdvance ()
 
bool mgx::progressAdvance (int step)
 
void mgx::progressStart (const std::string &msg, int steps)
 
void mgx::progressSetMsg (const std::string &msg)
 
bool mgx::progressCancelled ()
 
void mgx::progressStop ()
 
cuda_EXPORT int mgx::checkCudaError (const std::string &msg)
 
cuda_EXPORT uint mgx::getThreadCount (uint threadPos, uint totThreads)
 
cuda_EXPORT int mgx::errMsg (const std::string &s)
 
cuda_EXPORT size_t mgx::userMem ()
 
template<typename T >
T * mgx::devP (thrust::device_vector< T > &DVec)
 
template<typename T >
T * mgx::devP (thrust::device_vector< T > *DVec)
 
double mgx::atomicAddMGX (double *address, double val)
 
void mgx::freeMem ()
 
void mgx::holdMem ()
 
size_t mgx::memLeft (size_t memrq, size_t roomrq, size_t mem)
 

Macro Definition Documentation

◆ COMPILE_CUDA

#define COMPILE_CUDA

Definition at line 21 of file Cuda.hpp.

◆ MByte

#define MByte

Definition at line 78 of file Cuda.hpp.