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 ) {
30 S * out =
new S[size] ;
31 for (
int i=0; i<size; i++ ) {
39template <
class T> T* CNCallocate (
long number ) {
40 return new T[number] ;
45template <
class T>
void CNCdeallocate ( T*& addr ) {
53template <
class T>
void CNCreallocate (T*& addr,
long old_number,
long new_number) {
54 T* new_addr =
new T[new_number] ;
55 for(
int i=0; i<old_number; i++) {
56 new_addr[i] = addr[i] ;
62#include "arcane/aleph/cuda/AlephCudaVector.h"
63#include "arcane/aleph/cuda/AlephCudaMatrix.h"
64#include "arcane/aleph/cuda/AlephCudaMatrixCrs.h"
78 void cnc_cuda_set_dim_vec_from_n(
long);
Lecteur des fichiers de maillage via la bibliothèque LIMA.