Changes between Initial Version and Version 2 of Ticket #25779


Ignore:
Timestamp:
07/05/18 18:13:27 (4 years ago)
Author:
saraedum
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25779

    • Property Component changed from PLEASE CHANGE to scripts
    • Property Summary changed from Don't detect all cpus with last docker images of sagemath to sage.parallel.ncpus.ncpus() reports wrong number of cores
  • Ticket #25779 – Description

    initial v2  
    1 hello,
     1In recent docker images
     2{{{
     3docker run -it --rm sagemath/sagemath:latest sage
     4sage: sage.parallel.ncpus.ncpus()
     51
     6}}}
     7in 8.0 this still returned the actual number of cores.
    28
    3     with version 8.0 of sagemath/sagemath image docker, sagemath detect all my cpus:
    4    
    5 {{{$ docker run -it --rm sagemath/sagemath:8.0 sage}}}
    6     SageMath version 8.0, Release Date: 2017-07-21\\
    7     Forcing sage-location, probably because a new package was installed.\\
    8     Updating various hardcoded paths…\\
    9     (Please wait at most a few minutes.)\\
    10     DO NOT INTERRUPT THIS.\\
    11     Done updating paths.\\
    12     sage: {{{sage.parallel.ncpus.ncpus()}}}
    13     8
    14 
    15     with version 8.1 and latest sagemath detect only one cpu:
    16    
    17 {{{docker run -it --rm sagemath/sagemath:latest sage }}}
    18     ┌───────────────────────────────────────────────────────────────┐\\
    19     │ SageMath version 8.2, Release Date: 2018-05-05 │\\
    20     │ Type "notebook()" for the browser-based notebook interface. │\\
    21     │ Type "help()" for help. │\\
    22     └───────────────────────────────────────────────────────────────┘\\
    23     Setting permissions of DOT_SAGE directory so only you can read and write it.\\
    24     sage: {{{sage.parallel.ncpus.ncpus()}}}
    25     1
    26 
    27 and if i launch "nproc" in container i have all my cpus:
    28 
    29 {{{docker run -it --rm sagemath/sagemath:latest nproc}}}
    30 8
    31 saraedum say Me i had the same pb after Building sagemath 8.1+ from scratch.
    32 it seems to be a bug with sagemath since 8.1 version.
    33 
    34 Can you help me , please
     9This seems to be unrelated to the fact that this is running in the docker image.