I have a program that compiles (after many tweaks) with g++. It is really a converted c programthat I changed to get it to compile and run like a c++ program.
However, when I try to compile it with cilk++ after doing the following things:
adding cilk.h to the main program's include files
changing main(0 to cilk_main()
renaming the file to from *.c *.cilk this is a Cilk Arts compiler cilk+_ compiler.
I get the error:
thread.c: In function int cilk CreateThread(pthread_t*, void*, void*, size_t):
thread.c:54: error: invalid conversion from void* (cilk*)(void*) to void* (*)(void*)
thread.c:54: error: initializing argument 3 of int pthread_create(pthread_t*, const pthread_attr_t*,
void* (*)(void*), void*)
I am unsure as to what is wrong and how to correct it. As I said it compiles under g++, but what is causing the error when I compile it under cilk++?
I am attaching the file (thread.c)that has the relevant c code in it.
Any help appreciated. Thanks in advance.
PS I have takenforum advice andI have submitted a voucher for Intel Cilk++, but it must go throughmany governmentoffices to be zpproved and finalized.That will take awhile so I am using Cilk Arts Cilk++ for now. Ishould have no problem converting the code to Intel Cilk++ when that transactionis complete.