Sony's Developer World forum

    • Home
    • Forum guidelines

    Will pthreads utilize all cores?

    Spresense
    2
    4
    1006
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Stanton last edited by

      I want to ensure I'm taking full advantage of all 6 cores. Will nuttx pthreads be scheduled across all 6 cores?

      Thanks!

      C 1 Reply Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @Stanton last edited by

        Hey, @Stanton

        According to https://developer.sony.com/develop/spresense/docs/sdk_tutorials_en.html#_how_to_build_16
        The default setting for feature/smp is dual-core (2-core). If you want to change the number of cores, change the number of SMP_NCPUS=2 in the sdk/configs/feature/smp/defconfig file. You can specify from 2 to maximum 6.

        S 1 Reply Last reply Reply Quote
        • S
          Stanton @CamilaSouza last edited by

          @CamilaSouza Thank you! This is perfect.

          C 1 Reply Last reply Reply Quote
          • C
            CamilaSouza DeveloperWorld @Stanton last edited by

            @Stanton

            Happy to help 🙂

            1 Reply Last reply Reply Quote
            • First post
              Last post
            Developer World
            Copyright © 2021 Sony Group Corporation. All rights reserved.
            • Contact us
            • Legal