I have a task to analyze the work of the omp.h library. I work with gcc sources. As a test, I wanted to change the function omp_get_thread_num() so that it always returns a constant (256 in my case). Having changed the function in the parallel.c file, I made make and make install for gcc sources and started the test program. However, the omp_get_thread_num() function still produces a result other than 256. What is my mistake?
|
1 answer
I don’t know what exactly the error is, but I’m writing essentially what helped me: after replacing the operating systems OpenSuse 11.3 and OpenSuse 12.3 , on which I tried to work on Ubuntu 12.04 everything worked. That is, I successfully made changes to the gcc sources and they entered into force. If anyone needs it: I used this instruction to build and install a compiler.
|