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