Skip to content

部分矩阵测试无法正确运行 #1

@jcpy-256

Description

@jcpy-256

编译后运行,ACTIVSg2000和bcsstk26矩阵出现在Fastload格式预处理阶段的错误,是由于-I/home/usr/NVIDIA_CUDA-11.1_Samples/common/inc这个编译选项是必选的吗。

运行设备是V100,cuda = 11.1
报错如下:

CUDA slide Runtime Error at: formatTransform_GPU.h:550
an illegal memory access was encountered cudaMemcpy(h_tilePtr, d_tile_ptr_final,(tilenum+1) * sizeof(int), cudaMemcpyDeviceToHost)
CUDA slide Runtime Error at: formatTransform_GPU.h:552
an illegal memory access was encountered cudaMemcpy(h_tileLen, d_tile_len, tilenum * sizeof(int), cudaMemcpyDeviceToHost)
CUDA slide Runtime Error at: formatTransform_GPU.h:553
an illegal memory access was encountered cudaMemcpy(h_tileColidx, d_tile_colidx, tilenum * sizeof(int), cudaMemcpyDeviceToHost)
CUDA slide Runtime Error at: formatTransform_GPU.h:554
an illegal memory access was encountered cudaMemcpy(h_sortvaltest, d_sortval,(nnz) * sizeof(double), cudaMemcpyDeviceToHost)
CUDA slide Runtime Error at: formatTransform_GPU.h:555
an illegal memory access was encountered cudaMemcpy(h_sortRowidx, d_sortrowidx,(nnz) * sizeof(int), cudaMemcpyDeviceToHost)
CUDA slide Runtime Error at: formatTransform_GPU.h:557
an illegal memory access was encountered cudaMemcpy(h_sortrowindex, d_rowsegIndex,(nnz) * sizeof(int), cudaMemcpyDeviceToHost)
CUDA slide Runtime Error at: formatTransform_GPU.h:558
an illegal memory access was encountered cudaMemcpy(h_tile_formatc, d_tileFormat,(tilenum) * sizeof(int), cudaMemcpyDeviceToHost)
CUDA slide Runtime Error at: formatTransform_GPU.h:564
an illegal memory access was encountered cudaFree(d_nnzcolReduce)
CUDA slide Runtime Error at: formatTransform_GPU.h:566
an illegal memory access was encountered cudaFree(d_nnzcolPtr)
CUDA slide Runtime Error at: formatTransform_GPU.h:567
an illegal memory access was encountered cudaFree(d_fortilecol)
CUDA slide Runtime Error at: formatTransform_GPU.h:568
an illegal memory access was encountered cudaFree(d_fortilennz)
CUDA slide Runtime Error at: formatTransform_GPU.h:569
an illegal memory access was encountered cudaFree(d_fortiletall)
CUDA slide Runtime Error at: formatTransform_GPU.h:572
an illegal memory access was encountered cudaFree(d_sortrowidxTmp)
CUDA slide Runtime Error at: formatTransform_GPU.h:573
an illegal memory access was encountered cudaFree(d_sortvalTmp)
CUDA slide Runtime Error at: formatTransform_GPU.h:574
an illegal memory access was encountered cudaFree(d_sortnnzTmp)
CUDA slide Runtime Error at: formatTransform_GPU.h:576
an illegal memory access was encountered cudaFree(d_tile_ptr)
CUDA slide Runtime Error at: formatTransform_GPU.h:577
an illegal memory access was encountered cudaFree(d_tile_len)
CUDA slide Runtime Error at: formatTransform_GPU.h:578
an illegal memory access was encountered cudaFree(d_tile_colidx)
CUDA slide Runtime Error at: formatTransform_GPU.h:579
an illegal memory access was encountered cudaFree(d_sortval)
CUDA slide Runtime Error at: formatTransform_GPU.h:580
an illegal memory access was encountered cudaFree(d_sortrowidx)
CUDA slide Runtime Error at: formatTransform_GPU.h:582
an illegal memory access was encountered cudaFree(d_tileTallPre)
CUDA slide Runtime Error at: formatTransform_GPU.h:583
an illegal memory access was encountered cudaFree(d_nnzPerTileSort)
CUDA slide Runtime Error at: formatTransform_GPU.h:584
an illegal memory access was encountered cudaFree(d_tile_ptr_final)
CUDA slide Runtime Error at: formatTransform_GPU.h:586
an illegal memory access was encountered cudaFree(d_auxiliaryForcount)
CUDA slide Runtime Error at: formatTransform_GPU.h:587
an illegal memory access was encountered cudaFree(d_countcol)
CUDA slide Runtime Error at: formatTransform_GPU.h:588
an illegal memory access was encountered cudaFree(d_tilenumcount)
CUDA slide Runtime Error at: formatTransform_GPU.h:589
an illegal memory access was encountered cudaFree(d_auxiArray)
CUDA slide Runtime Error at: formatTransform_GPU.h:590
an illegal memory access was encountered cudaFree(d_auxiArray2)
CUDA slide Runtime Error at: formatTransform_GPU.h:591
an illegal memory access was encountered cudaFree(d_auxiArray3)
CUDA slide Runtime Error at: formatTransform_GPU.h:592
an illegal memory access was encountered cudaFree(d_auxiArray4)
CUDA slide Runtime Error at: formatTransform_GPU.h:595
an illegal memory access was encountered cudaFree(d_countrow)
CUDA slide Runtime Error at: formatTransform_GPU.h:596
an illegal memory access was encountered cudaFree(d_countrowFi)
CUDA slide Runtime Error at: formatTransform_GPU.h:597
an illegal memory access was encountered cudaFree(d_segOff)
CUDA slide Runtime Error at: formatTransform_GPU.h:598
an illegal memory access was encountered cudaFree(d_segOffTmp)
CUDA slide Runtime Error at: formatTransform_GPU.h:599
an illegal memory access was encountered cudaFree(d_rowsegIndex)
CUDA slide Runtime Error at: formatTransform_GPU.h:600
an illegal memory access was encountered cudaFree(d_tileFormat)
CUDA slide Runtime Error at: formatTransform_GPU.h:602
an illegal memory access was encountered cudaFree(d_temp_storage1)
CUDA slide Runtime Error at: formatTransform_GPU.h:603
an illegal memory access was encountered cudaFree(d_temp_storage2)
CUDA slide Runtime Error at: formatTransform_GPU.h:604
an illegal memory access was encountered cudaFree(d_temp_storage3)
CUDA slide Runtime Error at: formatTransform_GPU.h:605
an illegal memory access was encountered cudaFree(d_temp_storage4)
CUDA slide Runtime Error at: formatTransform_GPU.h:607
an illegal memory access was encountered
CUDA slide Runtime Error at: CSCSpMV.h:50
an illegal memory access was encountered cudaMalloc((void **)&d_csc_rowidx, nnz * sizeof(int))
CUDA slide Runtime Error at: CSCSpMV.h:51
an illegal memory access was encountered cudaMalloc((void **)&d_csc_ptr, (n+1) * sizeof(int))
CUDA slide Runtime Error at: CSCSpMV.h:52
an illegal memory access was encountered cudaMalloc((void **)&d_csc_val, nnz * sizeof(double))
CUDA slide Runtime Error at: CSCSpMV.h:54
an illegal memory access was encountered cudaMalloc((void **)&d_x, n * sizeof(double))
CUDA slide Runtime Error at: CSCSpMV.h:55
an illegal memory access was encountered cudaMalloc((void **)&d_y, m * sizeof(double))
CUDA slide Runtime Error at: CSCSpMV.h:57
an illegal memory access was encountered cudaMemcpy(d_csc_ptr, csc_ptr, (n + 1) * sizeof(int), cudaMemcpyHostToDevice)
CUDA slide Runtime Error at: CSCSpMV.h:58
an illegal memory access was encountered cudaMemcpy(d_csc_rowidx, csc_rowidx, (nnz) * sizeof(int), cudaMemcpyHostToDevice)
CUDA slide Runtime Error at: CSCSpMV.h:59
an illegal memory access was encountered cudaMemcpy(d_csc_val, csc_val, (nnz) * sizeof(double), cudaMemcpyHostToDevice)
CUDA slide Runtime Error at: CSCSpMV.h:60
an illegal memory access was encountered cudaMemcpy(d_x, x, (n) * sizeof(double), cudaMemcpyHostToDevice)
CUDA slide Runtime Error at: CSCSpMV.h:89
an illegal memory access was encountered cudaMemcpy(y, d_y, m * sizeof(double), cudaMemcpyDeviceToHost)
CUDA slide Runtime Error at: CSCSpMV.h:120
an illegal memory access was encountered cudaMemcpy(y, d_y, m * sizeof(double), cudaMemcpyDeviceToHost)
CUDA API failed at line 52 with error: an illegal memory access was encountered (700)
CUDA API failed at line 53 with error: an illegal memory access was encountered (700)
CUDA API failed at line 54 with error: an illegal memory access was encountered (700)
CUDA API failed at line 55 with error: an illegal memory access was encountered (700)
CUDA API failed at line 56 with error: an illegal memory access was encountered (700)
CUDA API failed at line 60 with error: an illegal memory access was encountered (700)
CUDA API failed at line 62 with error: an illegal memory access was encountered (700)
CUDA API failed at line 64 with error: an illegal memory access was encountered (700)
CUDA API failed at line 66 with error: an illegal memory access was encountered (700)
CUDA API failed at line 68 with error: an illegal memory access was encountered (700)
CUSPARSE API failed at line 76 with error: initialization error (1)
** On entry to cusparseCreateCsr() parameter number 5 (csrRowOffsets) had an illegal value: null pointer

CUSPARSE API failed at line 81 with error: invalid value (3)
** On entry to cusparseCreateDnVec() parameter number 3 (values) had an illegal value: null pointer

CUSPARSE API failed at line 83 with error: invalid value (3)
** On entry to cusparseCreateDnVec() parameter number 3 (values) had an illegal value: null pointer

CUSPARSE API failed at line 85 with error: invalid value (3)
yhrun: error: gn61: task 0: Segmentation fault (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions