Re: Using core\cores specification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

En/na Nicolas BENOIT ha escrit:
> alanklm wrote:
>>
>>
>> Harald Servat-3 wrote:
> En/na alanklm ha escrit:
>>>>> Do somebody know if there is some possibility in gcc to set on which
>>>>> fixed
>>>>> cores of multi-core processor I want to execute my program?
> I'm afraid that this feature depends on the OS not on gcc itself.
> 
> For example, FreeBSD has the cpuset command and calls.
> http://www.freebsd.org/cgi/man.cgi?query=cpuset&sektion=2&apropos=0&manpath=FreeBSD+8.0-RELEASE
> 
> http://www.freebsd.org/cgi/man.cgi?query=cpuset&sektion=1&apropos=0&manpath=FreeBSD+8.0-RELEASE
> 
> 
> Other OSes may have other commands/calls.
> 
> Regards.
>>>
>>>
>> Thanks a lot. May be you know same command for Debian.  (4.0 or 5.0)

> On Linux, this functionnality is notably described in the manpages of
> sched_setaffinity

> Regards,
> N. BENOIT

Also, taskset (1) may help you.

Regards.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAksTp/MACgkQwMPeuqUCg9ws9wCdFrUkptYaBwvZd58+F8oz8+gm
o/cAn1lKhlvRM17zyamzMa29vgP8Q6SZ
=LNaq
-----END PGP SIGNATURE-----

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux