17#include <cuda_runtime.h>
19#define CNC_ASSERT(isOK, message) \
21 (void)printf("ERROR!! Assert '%s' failed\n%s\n", \
28template <
class T,
class S>
inline S* CNCallocate_and_copy(
const T* in,
int size)
32 for (
int i = 0; i < size; i++) {
40template <
class T> T* CNCallocate(
long number)
47template <
class T>
void CNCdeallocate(T*& addr)
56template <
class T>
void CNCreallocate(T*& addr,
long old_number,
long new_number)
58 T* new_addr =
new T[new_number];
59 for (
int i = 0; i < old_number; i++) {
60 new_addr[i] = addr[i];
66#include "arcane/aleph/cuda/AlephCudaVector.h"
67#include "arcane/aleph/cuda/AlephCudaMatrix.h"
68#include "arcane/aleph/cuda/AlephCudaMatrixCrs.h"
85 void cnc_cuda_set_dim_vec_from_n(
long);
90 const unsigned int nb_iter_max,
94 void cublas_get_error(cublasStatus_t);
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
double Real
Type representing a real number.