Gary
garyp****@gmail*****
2010年 5月 15日 (土) 05:47:37 JST
Hi I have some problem need to figure out Before I descript my questions, I have to explain why I use COINS Because I want turn normal C source code into a parallel C program And it can execute on embedded system. so I need auto loop-detection and optimization mechanism. Therefore the first question is how to use it? I follow the command on the web site "java coins.driver.Driver -coins:parallelDoAll=OpenMP -coins:target=x86 test2.c" No problem with this command, I got "foo-loop.c" and a binary file "a.out" But when I executed a.out, it's not run like parallel.what can I do next step? What wrong with it? Second question, I used cgParallel but I got wrong message like below: [hpc @ hpc ]$ java coins.driver.Driver -coins:cgParallel -coins:target=x86 test2.c /tmp/COINS8349653162205958917.tmp: In function `main': (.text+0x23): undefined reference to `omp_init_lock' /tmp/COINS8349653162205958917.tmp: In function `main': (.text+0xb8): undefined reference to `omp_set_num_threads' /tmp/COINS8349653162205958917.tmp: In function `main': (.text+0xc1): undefined reference to `omp_get_thread_num' /tmp/COINS8349653162205958917.tmp: In function `main': (.text+0xd6): undefined reference to `omp_set_lock' /tmp/COINS8349653162205958917.tmp: In function `main': (.text+0x236): undefined reference to `omp_unset_lock' /tmp/COINS8349653162205958917.tmp: In function `main': (.text+0x30f): undefined reference to `omp_destroy_lock' collect2: ld return 1 what's happen? Thank read my question with patience. Gary -------------- next part -------------- HTMLの添付ファイルを保管しました...Download