| /petsc/src/mat/tests/ |
| H A D | ex182.c | 47 filter: grep malloc | sort -b 54 filter: grep -h malloc "ex182info.0" | sort -b 60 filter: grep malloc | sort -b 67 filter: grep -h malloc "ex182info.1" | sort -b 73 filter: grep malloc | sort -b 80 filter: grep -h malloc "ex182info.0" | sort -b 87 filter: grep -h malloc "ex182info.0" | grep -v Running | sort -b 94 filter: grep -h malloc "ex182info.1" | sort -b 108 filter: grep -h malloc | sort -b
|
| H A D | mmio.c | 52 ia = (int *)malloc(nz * sizeof(int)); in mm_read_unsymmetric_sparse() 53 ja = (int *)malloc(nz * sizeof(int)); in mm_read_unsymmetric_sparse() 54 val = (double *)malloc(nz * sizeof(double)); in mm_read_unsymmetric_sparse() 263 *ia = (int *)malloc(*nz * sizeof(int)); in mm_read_mtx_crd() 264 *ja = (int *)malloc(*nz * sizeof(int)); in mm_read_mtx_crd() 268 *val = (double *)malloc(*nz * 2 * sizeof(double)); in mm_read_mtx_crd() 272 *val = (double *)malloc(*nz * sizeof(double)); in mm_read_mtx_crd()
|
| H A D | bench_spmv.c | 22 content = (char *)malloc((size_t)length + sizeof("")); in read_file() 52 filenames = (char **)malloc(sizeof(char *) * n); in ParseJSON() 53 groupnames = (char **)malloc(sizeof(char *) * n); in ParseJSON() 54 matnames = (char **)malloc(sizeof(char *) * n); in ParseJSON() 58 filenames[i] = (char *)malloc(sizeof(char) * (strlen(item->valuestring) + 1)); in ParseJSON() 62 groupnames[i] = (char *)malloc(sizeof(char) * strlen(item->valuestring) + 1); in ParseJSON() 65 matnames[i] = (char *)malloc(sizeof(char) * strlen(item->valuestring) + 1); in ParseJSON()
|
| H A D | cJSON.h | 123 …/* malloc/free are CDECL on Windows regardless of the default calling convention of the compiler, … 139 /* Supply malloc, realloc and free functions to cJSON */ 284 /* malloc/free objects using the malloc/free functions that have been set with cJSON_InitHooks */
|
| /petsc/src/ksp/pc/impls/tfs/ |
| H A D | xyt.c | 70 xyt_handle = (xyt_ADT)malloc(sizeof(struct xyt_CDT)); in XYT_new() 93 xyt_handle->info = (xyt_info *)malloc(sizeof(xyt_info)); in XYT_factor() 267 xcol_sz = (PetscInt *)malloc(m * sizeof(PetscInt)); in xyt_generate() 268 xcol_indices = (PetscInt *)malloc((2 * m + 1) * sizeof(PetscInt)); in xyt_generate() 269 xcol_vals = (PetscScalar **)malloc(m * sizeof(PetscScalar *)); in xyt_generate() 278 ycol_sz = (PetscInt *)malloc(m * sizeof(PetscInt)); in xyt_generate() 279 ycol_indices = (PetscInt *)malloc((2 * m + 1) * sizeof(PetscInt)); in xyt_generate() 280 ycol_vals = (PetscScalar **)malloc(m * sizeof(PetscScalar *)); in xyt_generate() 289 stages = (PetscInt *)malloc((level + 1) * sizeof(PetscInt)); in xyt_generate() 290 segs = (PetscInt *)malloc((level + 1) * sizeof(PetscInt)); in xyt_generate() [all …]
|
| H A D | xxt.c | 68 xxt_handle = (xxt_ADT)malloc(sizeof(struct xxt_CDT)); in XXT_new() 91 xxt_handle->info = (xxt_info *)malloc(sizeof(xxt_info)); in XXT_factor() 209 col_sz = (PetscInt *)malloc(m * sizeof(PetscInt)); in xxt_generate() 210 col_indices = (PetscInt *)malloc((2 * m + 1) * sizeof(PetscInt)); in xxt_generate() 211 col_vals = (PetscScalar **)malloc(m * sizeof(PetscScalar *)); in xxt_generate() 220 stages = (PetscInt *)malloc((level + 1) * sizeof(PetscInt)); in xxt_generate() 221 segs = (PetscInt *)malloc((level + 1) * sizeof(PetscInt)); in xxt_generate() 228 u = (PetscScalar *)malloc(n * sizeof(PetscScalar)); in xxt_generate() 229 z = (PetscScalar *)malloc(n * sizeof(PetscScalar)); in xxt_generate() 230 v = (PetscScalar *)malloc(a_m * sizeof(PetscScalar)); in xxt_generate() [all …]
|
| H A D | gs.c | 210 gs = (PCTFS_gs_id *)malloc(sizeof(PCTFS_gs_id)); in gsi_new() 247 elms = (PetscInt *)malloc((nel + 1) * sizeof(PetscInt)); in gsi_check_args() 248 companion = (PetscInt *)malloc(nel * sizeof(PetscInt)); in gsi_check_args() 301 gs->local_reduce = local_reduce = (PetscInt **)malloc(num_local * sizeof(PetscInt *)); in gsi_check_args() 302 gs->num_local_reduce = num_to_reduce = (PetscInt *)malloc(num_local * sizeof(PetscInt)); in gsi_check_args() 304 unique = (PetscInt *)malloc((gs->nel + 1) * sizeof(PetscInt)); in gsi_check_args() 322 iptr = local_reduce[num_local++] = (PetscInt *)malloc(t2 * sizeof(PetscInt)); in gsi_check_args() 473 tree_buf = (PetscInt *)malloc(tree_buf_sz * sizeof(PetscInt)); in place_in_tree() 478 tree_buf = (PetscInt *)malloc(tree_buf_sz * sizeof(PetscInt)); in place_in_tree() 505 p_mask = (PetscInt *)malloc(p_mask_size = PCTFS_len_bit_mask(PCTFS_num_nodes)); in get_ngh_buf() [all …]
|
| /petsc/src/sys/memory/ |
| H A D | mal.c | 2 Code that allows a user to dictate what malloc() PETSc uses. 8 #include <malloc.h> 47 else *result = malloc(mem); in PetscMallocAlign() 59 malloc space for two extra chunks and shift ptr 1 + enough to get it PetscScalar aligned in PetscMallocAlign() 64 ptr = (int *)malloc(mem + 2 * PETSC_MEMALIGN); in PetscMallocAlign() 89 the original address provided by the system malloc(). in PetscFreeAlign() 123 the original address provided by the system malloc(). in PetscReallocAlign() 137 malloc space for two extra chunks and shift ptr 1 + enough to get it PetscScalar aligned in PetscReallocAlign() 155 * realloc and, if the alignment is wrong, malloc/copy/free. */ in PetscReallocAlign() 201 + imalloc - the routine that provides the `malloc()` implementation (also provides `calloc()`, whic… [all …]
|
| H A D | mtr.c | 7 #include <malloc.h> 157 PetscTrMallocDefault - Malloc with logging and error checking 229 PetscLogMallocLength = (size_t *)malloc(PetscLogMallocMax * sizeof(size_t)); in PetscTrMallocDefault() 232 PetscLogMallocFile = (const char **)malloc(PetscLogMallocMax * sizeof(char *)); in PetscTrMallocDefault() 235 PetscLogMallocFunction = (const char **)malloc(PetscLogMallocMax * sizeof(char *)); in PetscTrMallocDefault() 335 /* If the original space was NULL just use the regular malloc() */ in PetscTrReallocDefault() 413 /* fix the line number to where the malloc() was called, not the PetscFunctionBegin; */ in PetscTrReallocDefault() 423 PetscLogMallocLength = (size_t *)malloc(PetscLogMallocMax * sizeof(size_t)); in PetscTrReallocDefault() 426 PetscLogMallocFile = (const char **)malloc(PetscLogMallocMax * sizeof(char *)); in PetscTrReallocDefault() 429 PetscLogMallocFunction = (const char **)malloc(PetscLogMallocMax * sizeof(char *)); in PetscTrReallocDefault() [all …]
|
| /petsc/src/sys/memory/cuda/ |
| H A D | mcudahost.cu | 27 Switch the current malloc and free routines to the CUDA malloc and free routines 34 This provides a way to use the CUDA malloc and free routines temporarily. One
|
| /petsc/src/sys/memory/hip/ |
| H A D | mhiphost.hip.cxx | 27 Switch the current malloc and free routines to the HIP malloc and free routines 34 This provides a way to use the HIP malloc and free routines temporarily. One
|
| /petsc/src/vec/vec/impls/shared/ |
| H A D | shvec.c | 121 perror("Unable to malloc shared memory"); in PetscSharedMalloc() 122 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, "Unable to malloc shared memory"); in PetscSharedMalloc() 127 perror("Unable to malloc shared memory"); in PetscSharedMalloc() 128 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, "Unable to malloc shared memory"); in PetscSharedMalloc()
|
| /petsc/src/benchmarks/ |
| H A D | PetscMalloc.c | 43 PetscCall(PetscOptionsHasName(NULL, "-malloc", &flg)); in main() 44 if (flg) fprintf(stdout, "-malloc "); in main()
|
| /petsc/src/mat/impls/sell/seq/ |
| H A D | sell.h | 21 …cBool singlemalloc; /* if true a, i, and j have been obtained with one big malloc */ \ 98 …TOFRANGE, "New nonzero at (%" PetscInt_FMT ",%" PetscInt_FMT ") caused a malloc. Use MatSetOption(… 99 /* malloc new storage space */ \ 154 …TOFRANGE, "New nonzero at (%" PetscInt_FMT ",%" PetscInt_FMT ") caused a malloc. Use MatSetOption(… 155 /* malloc new storage space */ \
|
| /petsc/src/sys/tests/ |
| H A D | petsc.yml | 24 malloc:
|
| /petsc/src/ksp/pc/impls/spai/ |
| H A D | ispai.c | 557 M->mnls = (int *)malloc(sizeof(int) * size); in ConvertMatToMatrix() 558 M->start_indices = (int *)malloc(sizeof(int) * size); in ConvertMatToMatrix() 559 M->pe = (int *)malloc(sizeof(int) * n); in ConvertMatToMatrix() 560 M->block_sizes = (int *)malloc(sizeof(int) * n); in ConvertMatToMatrix() 604 rows->ptrs[row_indx] = (int *)malloc(nz * sizeof(int)); in ConvertMatToMatrix() 605 rows->A[row_indx] = (double *)malloc(nz * sizeof(double)); in ConvertMatToMatrix() 626 rows->rptrs[row_indx] = (int *)malloc(nz * sizeof(int)); in ConvertMatToMatrix()
|
| /petsc/config/BuildSystem/config/utilities/ |
| H A D | getResidentSetSize.py | 67 m = malloc(ARRAYSIZE*sizeof(int)); 69 printf("Error calling malloc()\\n");
|
| /petsc/doc/developers/ |
| H A D | kernel.md | 166 PETSc provides simple wrappers for the system `malloc(), calloc()`, 198 wrappers for `malloc(), calloc()`, and `free()`. Both 212 reduces the number of system `malloc()` calls, thus potentially
|
| /petsc/src/vec/is/sf/impls/basic/cupm/cuda/ |
| H A D | sfcupm.cu | 33 PetscCall(PetscSFCuda::Malloc(mtype, size, ptr)); in PetscSFMalloc_CUDA()
|
| /petsc/src/vec/is/sf/impls/basic/cupm/hip/ |
| H A D | sfcupm.hip.cxx | 36 PetscCall(PetscSFHIP::Malloc(mtype, size, ptr)); in PetscSFMalloc_HIP()
|
| /petsc/src/sys/ftn-custom/ |
| H A D | zsys.c | 32 This version does not do a malloc
|
| /petsc/src/mat/impls/aij/seq/essl/ |
| H A D | essl.c | 99 /* since malloc is slow on IBM we try a single malloc */ in MatLUFactorSymbolic_Essl()
|
| /petsc/config/PETSc/options/ |
| H A D | memAlign.py | 14 return ' Memory alignment from malloc(): ' + self.memalign + ' bytes\n'
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | dlpack.pxi | 17 void* malloc(size_t size)
|
| /petsc/src/benchmarks/streams/ |
| H A D | SSEVersion.c | 106 a = malloc(N * sizeof(double)); in main() 107 b = malloc(N * sizeof(double)); in main() 108 c = malloc(N * sizeof(double)); in main()
|