Skip to content

Commit

Permalink
Working past stack overflow in CUDA--the stack size is very limited.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaby76 committed Dec 7, 2017
1 parent fde7f5f commit ea04e58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Campy.Compiler/Resources/CLIFile.ptx
Expand Up @@ -300,7 +300,7 @@
.param .b64 _Z30CLIFile_GetMetaDataForAssemblyPc_param_0 .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 %SP;
.reg .b64 %SPL; .reg .b64 %SPL;
.reg .pred %p<85>; .reg .pred %p<85>;
Expand Down Expand Up @@ -5738,7 +5738,7 @@ BB6_103:
.loc 1 90 4 .loc 1 90 4
mov.u64 %rd414, $str8; mov.u64 %rd414, $str8;
cvta.global.u64 %rd415, %rd414; 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); //C:/Users/kenne/Documents/Campy/Campy.Runtime/Native/CLIFile.cu:90 Crash("Cannot load required assembly file: %s", fileName);
.loc 1 90 4 .loc 1 90 4
Expand Down Expand Up @@ -8415,6 +8415,6 @@ BB7_49:
ret; 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 .file 2 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v9.0\\include\\cuda_device_runtime_api.h", 1504359958, 14836


2 changes: 1 addition & 1 deletion Campy.Runtime/Native/CLIFile.cu
Expand Up @@ -78,7 +78,7 @@ __device__ tMetaData* CLIFile_GetMetaDataForAssembly(char *pAssemblyName) {
// Assembly not loaded, so load it if possible // Assembly not loaded, so load it if possible
{ {
tCLIFile *pCLIFile; tCLIFile *pCLIFile;
char fileName[2000]; char fileName[30];


printf("In CLIFile_GetMetaDataForAssembly0\n"); printf("In CLIFile_GetMetaDataForAssembly0\n");
//Gsprintf(fileName, "%s.dll", pAssemblyName); //Gsprintf(fileName, "%s.dll", pAssemblyName);
Expand Down

0 comments on commit ea04e58

Please sign in to comment.