mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 15:16:26 +01:00
Fix gree
This commit is contained in:
parent
1fdb9ff37a
commit
e181deab1e
@ -124,7 +124,7 @@ extern "C"
|
||||
void gree(void* ptr) {
|
||||
#if defined(USE_CUDA) || defined(TEST_MEMORY_MANAGEMENT)
|
||||
pthread_mutex_lock(&memory_lock);
|
||||
free_memory(ptr, memory);
|
||||
memory = free_memory(ptr, memory);
|
||||
pthread_mutex_unlock(&memory_lock);
|
||||
#else
|
||||
free(ptr);
|
||||
|
@ -124,7 +124,7 @@ extern "C"
|
||||
void gree(void* ptr) {
|
||||
#if defined(USE_CUDA) || defined(TEST_MEMORY_MANAGEMENT)
|
||||
pthread_mutex_lock(&memory_lock);
|
||||
free_memory(ptr, memory);
|
||||
memory = free_memory(ptr, memory);
|
||||
pthread_mutex_unlock(&memory_lock);
|
||||
#else
|
||||
free(ptr);
|
||||
|
Loading…
Reference in New Issue
Block a user