- Code: Select all
gcc -m32 -O3 -DADD_ -DHAVE_CUBLAS -DGPUSHMEM=130 -I/usr/local/cuda/include -I../include -I../control -c zhetrd_hb2st.cpp -o zhetrd_hb2st.o
zhetrd_hb2st.cpp:100: error: ‘pthread_barrier_t’ does not name a type
zhetrd_hb2st.cpp: In constructor ‘magma_zbulge_data::magma_zbulge_data(magma_int_t, magma_int_t, magma_int_t, magma_int_t, magma_int_t, magma_int_t, magma_int_t, cuDoubleComplex*, magma_int_t, cuDoubleComplex*, magma_int_t, cuDoubleComplex*, cuDoubleComplex*, magma_int_t, volatile magma_int_t*)’:
zhetrd_hb2st.cpp:77: error: ‘barrier’ was not declared in this scope
zhetrd_hb2st.cpp:77: error: ‘pthread_barrier_init’ was not declared in this scope
zhetrd_hb2st.cpp: In destructor ‘magma_zbulge_data::~magma_zbulge_data()’:
zhetrd_hb2st.cpp:82: error: ‘barrier’ was not declared in this scope
zhetrd_hb2st.cpp:82: error: ‘pthread_barrier_destroy’ was not declared in this scope
zhetrd_hb2st.cpp: In function ‘void* magma_zhetrd_hb2st_parallel_section(void*)’:
zhetrd_hb2st.cpp:354: error: ‘pthread_barrier_t’ was not declared in this scope
zhetrd_hb2st.cpp:354: error: ‘barrier’ was not declared in this scope
zhetrd_hb2st.cpp:354: error: ‘class magma_zbulge_data’ has no member named ‘barrier’
zhetrd_hb2st.cpp:412: error: ‘pthread_barrier_wait’ was not declared in this scope
zhetrd_hb2st.cpp:444: error: ‘pthread_barrier_wait’ was not declared in this scope
make[1]: *** [zhetrd_hb2st.o] Error 1
make: *** [libmagma] Error 2
My understanding is that pthread barriers are not supported on Mac OS X. Is it possible to build MAGMA on Mac OS X?