ببینید این کاملا درست اجرا می شه
#define DATAXSIZE 190
#define DATAYSIZE 190
#define DATAZSIZE 96
#define DATASIZE 66
const int nx = DATAXSIZE;
const int ny = DATAYSIZE;
const int nz = DATAZSIZE;
const int nl = DATASIZE;
if ((vv = (MATRIX *)malloc((nl*nx*ny*nz)*sizeof(float))) == 0) {fprintf(stderr,"malloc1 Fail \n"); return 1;}
اما این اجرا نمی شه
#define DATAXSIZE 380
#define DATAYSIZE 380
#define DATAZSIZE 48
#define DATASIZE 66
const int nx = DATAXSIZE;
const int ny = DATAYSIZE;
const int nz = DATAZSIZE;
const int nl = DATASIZE;
if ((vv = (MATRIX *)malloc((nl*nx*ny*nz)*sizeof(float))) == 0) {fprintf(stderr,"malloc1 Fail \n"); return 1;}
همونطور که گفتم پیغام خطا هم نمیده
این همه پیغاماییه که موقع اجرای آرایه های 380 میده
'cu3.exe': Loaded 'C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\C\src\cu3 - Copy\Release\cu3.exe', Symbols loaded.
'cu3.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'cu3.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'cu3.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'cu3.exe': Loaded 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\bin\cudart32_42_9.dll', Binary was not built with debug information.
'cu3.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Cannot find or open the PDB file
The program '[1632] cu3.exe: Native' has exited with code 1 (0x1).
و دیگر هیچ
من باید برای استفاده از cuda از heap استفاده می کردم
ممنون می شم راهنمایی اگه دارین بدون دعوا مرافعه بفرمایید