cublas

Segmentation fault when passing device pointer to cublasSnrm2

扶醉桌前 提交于 2019-11-27 08:41:45
问题 The code of cublas below give us the errors:core dumped while being at "cublasSnrm2(handle,row,dy,incy,de)",could you give some advice? main.cu #include <iostream> #include "cublas.h" #include "cublas_v2.h" #include "helper_cuda.h" using namespace std; int main(int argc,char *args[]) { float y[10] = {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0}; int dev=0; checkCudaErrors(cudaSetDevice(dev)); //cublas init cublasStatus stat; cublasInit(); cublasHandle_t handle; stat = cublasCreate(&handle); if

Tensorflow crashes with CUBLAS_STATUS_ALLOC_FAILED

丶灬走出姿态 提交于 2019-11-27 02:10:00
问题 I'm running tensorflow-gpu on Windows 10 using a simple MINST neural network program. When it tries to run, it encounters a CUBLAS_STATUS_ALLOC_FAILED error. A google search doesn't turn up anything. I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:885] Found device 0 with properties: name: GeForce GTX 970 major: 5 minor: 2 memoryClockRate (GHz) 1.253 pciBusID 0000:0f:00.0 Total memory: 4.00GiB Free memory: 3.31GiB I c:\tf

CUBLAS: Incorrect inversion for matrix with zero pivot

柔情痞子 提交于 2019-11-26 14:49:07
问题 Since CUDA 5.5, the CUBLAS library contains routines for batched matrix factorization and inversion (cublas<t>getrfBatched and cublas<t>getriBatched respectively). Getting guide from the documentation, I wrote a test code for inversion of an N x N matrix using these routines. The code gives correct output only if the matrix has all non zero pivots. Setting any pivot to zero results in incorrect results. I have verified the results using MATLAB. I realize that I am providing row major matrices