Permalink
Browse files

Working past stack overflow in CUDA--the stack size is very limited.

  • Loading branch information...
kaby76 committed Dec 7, 2017
1 parent fde7f5f commit ea04e58a0c5d7f927136008896afcccdbebd20ba
Showing with 4 additions and 4 deletions.
  1. +3 −3 Campy.Compiler/Resources/CLIFile.ptx
  2. +1 −1 Campy.Runtime/Native/CLIFile.cu
@@ -300,7 +300,7 @@
.param .b64 _Z30CLIFile_GetMetaDataForAssemblyPc_param_0
)
{
.local .align 16 .b8 __local_depot6[2016];
.local .align 8 .b8 __local_depot6[40];
.reg .b64 %SP;
.reg .b64 %SPL;
.reg .pred %p<85>;
@@ -5738,7 +5738,7 @@ BB6_103:
.loc 1 90 4
mov.u64 %rd414, $str8;
cvta.global.u64 %rd415, %rd414;
add.u64 %rd416, %SP, 16;
add.u64 %rd416, %SP, 8;
//C:/Users/kenne/Documents/Campy/Campy.Runtime/Native/CLIFile.cu:90 Crash("Cannot load required assembly file: %s", fileName);
.loc 1 90 4
@@ -8415,6 +8415,6 @@ BB7_49:
ret;
}
.file 1 "C:/Users/kenne/Documents/Campy/Campy.Runtime/Native/CLIFile.cu", 1512577487, 11347
.file 1 "C:/Users/kenne/Documents/Campy/Campy.Runtime/Native/CLIFile.cu", 1512660562, 11345
.file 2 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v9.0\\include\\cuda_device_runtime_api.h", 1504359958, 14836
@@ -78,7 +78,7 @@ __device__ tMetaData* CLIFile_GetMetaDataForAssembly(char *pAssemblyName) {
// Assembly not loaded, so load it if possible
{
tCLIFile *pCLIFile;
char fileName[2000];
char fileName[30];
printf("In CLIFile_GetMetaDataForAssembly0\n");
//Gsprintf(fileName, "%s.dll", pAssemblyName);

0 comments on commit ea04e58

Please sign in to comment.