Browse Source

Add memory free

main
PatricZhao 3 years ago
committed by GitHub
parent
commit
79360e051d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      code/basic_parafor.cpp

+ 3
- 0
code/basic_parafor.cpp View File

@ -44,6 +44,9 @@
printf("%d, ", host_mem[i]);
}
printf("\nTask Done!\n");
free(host_mem, my_gpu_queue);
free(device_mem, my_gpu_queue);
return 0;
}

Loading…
Cancel
Save