Skip to content
Snippets Groups Projects
Unverified Commit 7e33fd4d authored by Recolic Keghart's avatar Recolic Keghart
Browse files

sync

parent 0bd01403
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,8 @@ namespace rlib { ...@@ -59,7 +59,8 @@ namespace rlib {
printf("hit\n"); printf("hit\n");
cap *= 2; cap *= 2;
cap += 3; cap += 3;
dev_apply_new_cap(); bool res = dev_apply_new_cap();
if(res == false) printf("FUCK!\n");
RLIB_IMPL_CUDA_UNLOCK(pLock); RLIB_IMPL_CUDA_UNLOCK(pLock);
} }
else { else {
...@@ -123,7 +124,7 @@ namespace rlib { ...@@ -123,7 +124,7 @@ namespace rlib {
} }
__device__ bool dev_apply_new_cap() { __device__ bool dev_apply_new_cap() {
void *new_mem; void *new_mem = nullptr;
(cudaMalloc(&new_mem, cap)); (cudaMalloc(&new_mem, cap));
if(new_mem == nullptr) if(new_mem == nullptr)
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment