[sage-support] Re: Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-25 Thread John H Palmieri
Are you using OS X? Could this possibly be due to how Python handles multiprocessing on OS X vs. other platforms? (See https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods, in particular the comment "On macOS, the *spawn* start method is now the default" and https:

[sage-support] Re: Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-25 Thread 'Alan Stafford' via sage-support
Process SpawnPoolWorker-1: Traceback (most recent call last): File "/private/var/tmp/sage-9.5-current/local/var/lib/sage/venv-python3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/private/var/tmp/sage-9.5-current/local/var/lib/sage/venv-python3.9.9/lib

[sage-support] Re: Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-25 Thread Eric Gourgoulhon
Hi, Le mardi 25 janvier 2022 à 12:54:57 UTC+1, alan_thoma...@yahoo.co.uk a écrit : > I get errors in this notebook if I set the variable tpar to any value > greater than one. (Number of Tensor processing cores.) > > *http://alan.atstafford.co.uk/Sage9.5Problem.ipynb >

Re: [sage-support] Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-25 Thread Dima Pasechnik
On Tue, Jan 25, 2022 at 7:34 PM 'Alan Stafford' via sage-support wrote: > > > Are you saying I should remove the lines above and just use the > SAGE_NUM_THREADS environment variable? no, not at all, I was just extracting these from your notebook, so that a casual reader can see what your have a

Re: [sage-support] Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-25 Thread 'Alan Stafford' via sage-support
Are you saying I should remove the lines above and just use the SAGE_NUM_THREADS environment variable? Alan On Tuesday, January 25, 2022 at 1:06:42 PM UTC dim...@gmail.com wrote: > Attached is converted to .rst notebook, just in case. And the > problematic part is here: > > var('tpar','lpar') >

Re: [sage-support] How to list all codewords of C ?

2022-01-25 Thread David Joyner
On Tue, Jan 25, 2022 at 9:36 AM GUSTAVO TERRA BASTOS wrote: > > Hey guys. Hope everyone is fine. > I am sage beginner, I´d like to know how to describe all the codewords from > my linear code C. Best, Gustavo. > > Welcome Gustavo! Here's an example: sage: C = codes.HammingCode(GF(2),3); C [7,

[sage-support] How to list all codewords of C ?

2022-01-25 Thread GUSTAVO TERRA BASTOS
Hey guys. Hope everyone is fine. I am sage beginner, I´d like to know how to describe all the codewords from my linear code C. Best, Gustavo. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving e

Re: [sage-support] Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-25 Thread Dima Pasechnik
Attached is converted to .rst notebook, just in case. And the problematic part is here: var('tpar','lpar') tpar=1 #I want to set to greater than 1 but it will not work for Sage 9.5. Works with Sage 9.1 if I hack ncpus to return 4. lpar=4 Parallelism().set('tensor',tpar) Par

[sage-support] Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-25 Thread 'Alan Stafford' via sage-support
I get errors in this notebook if I set the variable tpar to any value greater than one. (Number of Tensor processing cores.) *http://alan.atstafford.co.uk/Sage9.5Problem.ipynb* Regards Alan -- You received this message because you are subscribed to the Google Groups "sage-support" group. To