Hi
when I wanted to debug a program of mine with cuda-memcheck it kept crashing right at the GPU initialisation. After strippting everything down I ended up with the absolute minimum cuda program that is possible (except for an empty main):
#include <stdio.h>
#include "cuda_runtime.h"
int main()
{
printf("Start\n");
cudaThreadSynchronize();
printf("Done\n");
}
Its CUDA 4.0 with 275.09.07 drivers on Scientific Linux 6.0:
/usr/wrk/people9/chmu-tph/bug-check/cudamemcheck-init :> nvcc -g cuda-init-simple.cu
/usr/wrk/people9/chmu-tph/bug-check/cudamemcheck-init :> nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2011 NVIDIA Corporation
Built on Thu_May_12_11:09:45_PDT_2011
Cuda compilation tools, release 4.0, V0.2.1221
/usr/wrk/people9/chmu-tph/bug-check/cudamemcheck-init :> nvidia-smi -a | grep Driver
Driver Version : 275.09.07
Driver Model
Driver Model
Driver Model
/usr/wrk/people9/chmu-tph/bug-check/cudamemcheck-init :> nvidia-smi -s
COMPUTE mode rules for GPU 0: 1
COMPUTE mode rules for GPU 1: 1
COMPUTE mode rules for GPU 2: 2
/usr/wrk/people9/chmu-tph/bug-check/cudamemcheck-init :> cuda-memcheck ./a.out
========= CUDA-MEMCHECK
Start
========= Error: process didn't terminate successfully
========= ERROR SUMMARY: 0 errors
/usr/wrk/people9/chmu-tph/bug-check/cudamemcheck-init :> ./a.out
Start
Done
/usr/wrk/people9/chmu-tph/bug-check/cudamemcheck-init :> g++ --version
g++ (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
Copyright (C) 2010 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.
/usr/wrk/people9/chmu-tph/bug-check/cudamemcheck-init :> cat /etc/issue
Scientific Linux release 6.0 (Carbon)
Can someone reproduce that behaviour?
Cheers
Christian