Alsvinn  0.5.3
The fast FVM simulator with UQ support
Namespaces | Macros
CudaMemory.cpp File Reference
#include "alsfvm/cuda/CudaMemory.hpp"
#include "cuda.h"
#include "cuda_runtime.h"
#include "alsfvm/cuda/cuda_utils.hpp"
#include <cassert>
#include <algorithm>
#include "alsfvm/memory/memory_utils.hpp"
#include "alsfvm/cuda/vector_operations.hpp"
#include "alsutils/error/Exception.hpp"
#include "alsfvm/memory/HostMemory.hpp"
#include "alsutils/log.hpp"
#include "alsutils/config.hpp"
#include <chrono>
#include <thread>

Namespaces

 alsfvm
 Various utility functions to implement the tecno flux.
 
 alsfvm::cuda
 

Macros

#define CHECK_SIZE_AND_HOST(x)
 

Macro Definition Documentation

◆ CHECK_SIZE_AND_HOST

#define CHECK_SIZE_AND_HOST (   x)
Value:
{ \
if (x.isOnHost()) {\
THROW(#x << " is on host."); \
} \
if (this->getSize() != x.getSize()) { \
THROW("Size mismatch: \n\tthis->getSize() = " << this->getSize() <<"\n\t"<<#x<<".getSize() = " << x.getSize()); \
} \
}