Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(cpus:get-number-of-processors) returns 0 in macOS #4

Open
auvi opened this issue Mar 31, 2018 · 1 comment
Open

(cpus:get-number-of-processors) returns 0 in macOS #4

auvi opened this issue Mar 31, 2018 · 1 comment

Comments

@auvi
Copy link

auvi commented Mar 31, 2018

Currently on macOS:

* (cpus:get-number-of-processors)

0

I have sent PR #3 . With the fix it works in my mac.

* (cpus:get-number-of-processors)

4
@muyinliu
Copy link
Owner

muyinliu commented Mar 31, 2018

I have noticed that weird things happen like this:

sbcl --noinform \
        --eval "(ql:quickload 'cl-cpus)" \
        --eval "(format t \"~S~%\" (cl-cpus::get-number-of-processors))"  \
        --eval "(format t \"~S~%\" (cl-cpus::get-number-of-processors))"
To load "cl-cpus":
  Load 1 ASDF system:
    cl-cpus
; Loading "cl-cpus"
.
8
8
* (cpus:get-number-of-processors)
0
* (cpus:get-number-of-processors)
0
*
implement REPL in Command Line in normal code
SBCL x
ECL x x
CCL

LdBeth added a commit to LdBeth/cl-cpus that referenced this issue Dec 18, 2021
`oldlenp` was not correctly initialized according to `man 3 sysctl`
vindarel pushed a commit to lisp-mirror/cl-naive-store that referenced this issue May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants