[sac-user] Linking with a proprietary thread library
s.scholz at herts.ac.uk
Sat Aug 7 13:04:07 CEST 2010
As Stephan already mentioned you can force sac2c compiler to link arbitrary
object files by specifying linkobjects:
#pragma linkobj "mylib"
You can link entire libraries by
#pragma linkwith "libname"
For example in Math.sac (stdlib/modules/numerical) you can see
#pragma linkwith "m"
which is needed for some architectures where libm is not linked per default.
Now, linking with a threading library might conflict with the POSIX threads
that we use whenever you use our auto-parllelisation feature (-mt)....
It would be interesting to see what happens :-)
On 07/08/2010 11:31, "Salem Reyen" <salemreyen at yahoo.com> wrote:
> I'm in the process of creating SaC-binding for BLAS and I need some
> clarification for linking SaC with a proprietary thread library (for which
> BLAS is based on). The FAQ 5.4 states that it can be done but it does not
> provide further information about how it can be done. More precisely, I'd
> like to know how to link SaC runtime with a proprietary thread library so I
> can manually turn on the threads for BLAS in the serial regions and turn off
> the threads in the parallel regions. Any help will be greatly appreciated.
> Best regards,
More information about the sac-user