We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28bcdec commit 66827cfCopy full SHA for 66827cf
1 file changed
main.cu
@@ -4835,11 +4835,7 @@ int main(int argc, char **argv) {
4835
}
4836
#endif
4837
4838
- CUresult code = cuInit(0);
4839
- if (code != CUDA_SUCCESS) {
4840
- fprintf(stderr, "Cuda Init: %s (code %d)\n", code);
4841
- exit(EXIT_FAILURE);
4842
- }
+ GPU_ASSERT(cuInit(0));
4843
GPU_ASSERT(cudaSetDevice(device));
4844
// int numBlocks;
4845
cudaDeviceProp prop;
@@ -4869,7 +4865,7 @@ int main(int argc, char **argv) {
4869
4865
4870
4866
printf("starting...\n");
4871
4867
uint64_t checkpointTemp = 0;
4872
- FILE* seedsout = fopen("seeds.txt", "w+");
4868
+ FILE* seedsout = fopen("seeds.txt", "a+");
4873
if(old_gpu){
4874
block_min *= 2;
4875
block_max *= 2;
0 commit comments