multithreading using lscs_mp
#6
RE: multithreading using lscs_mp
(11-02-2018, 09:42 PM)dexter1 Wrote:  
(11-02-2018, 02:20 PM)kmallick Wrote:  Since I don't know much about mult-thread programming, is there any way to replace or bypass the pthreads and use/allow sproc just during the call to lscs_mp?

Only if the program has its pthread support selectable by setting macro's, such as:
Code:
#if HAVE_PTHREAD
 (do threading stuff)
#else
 (do non-threading stuff)
#endif

If you would be able to instruct the compiler or make command to disable pthread support, you should be able to link against lscs_mp

Ah ok! I am afraid the code flow doesn't have that option of selectable pthreads.

I see that a C function (lets say funcX) called just before the matrix solve (call to lscs) is using pthread_create and pthread_join. I am not sure what to look for to check if the threads are closed. But I am certain that the function funcX's job is done before the call to lscs is made. I am not sure why the pthread process would hang in there and overlap with the use of sproc being used for lscs. Part of it is my ignorance again in multithread programming.  :dodgy: 

Thank you all again for providing the help and suggestions.
kmallick
Unregistered

Trade Count: (0)
 
Reply
11-03-2018, 01:14 AM


Messages In This Thread
multithreading using lscs_mp - by kmallick - 11-01-2018, 08:37 PM
RE: multithreading using lscs_mp - by dexter1 - 11-02-2018, 06:36 AM
RE: multithreading using lscs_mp - by kmallick - 11-02-2018, 02:20 PM
RE: multithreading using lscs_mp - by gijoe77 - 11-02-2018, 08:07 PM
RE: multithreading using lscs_mp - by dexter1 - 11-02-2018, 09:42 PM
RE: multithreading using lscs_mp - by kmallick - 11-03-2018, 01:14 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)