You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should also state that I modified SmartPtr.hpp to deal with a previous error where pthread_spin_init, pthread_spin_destroy, etc, were apparently not portable on Mac OS. Following the thread here, I added the following lines to SmartPtr.hpp:
#include <libkern/OSAtomic.h>
\\...
\\...
\\...
typedef int pthread_spinlock_t;
int pthread_spin_init(pthread_spinlock_t *lock, int pshared) {
__asm__ __volatile__ ("" ::: "memory");
*lock = 0;
return 0;
}
int pthread_spin_destroy(pthread_spinlock_t *lock) {
return 0;
}
int pthread_spin_lock(pthread_spinlock_t *lock) {
while (1) {
int i;
for (i=0; i < 10000; i++) {
if (__sync_bool_compare_and_swap(lock, 0, 1)) {
return 0;
}
}
sched_yield();
}
}
int pthread_spin_trylock(pthread_spinlock_t *lock) {
if (__sync_bool_compare_and_swap(lock, 0, 1)) {
return 0;
}
return EBUSY;
}
int pthread_spin_unlock(pthread_spinlock_t *lock) {
__asm__ __volatile__ ("" ::: "memory");
*lock = 0;
return 0;
}
Trying to install on a brand new Mac (10.12.6):
python --version
conda list
sudo python setup.py install
Commenting out the import_array() calls in Frame.cpp leads to the following error:
sudo python setup.py install
The text was updated successfully, but these errors were encountered: