The cl-cpus Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The cl-cpus Reference Manual

This is the cl-cpus Reference Manual, version 0.0.1, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 03:11:22 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

cl-cpus

cl-cpus is a Common Lisp feature to get number of CPUs.

License

Copyright (c) 2017 Muyinliu Xing Released under the ISC License.

Note: the Linux part of code comes from Edmound Weitz's book Common Lisp Recipes.

Compatibility

| Common Lisp | Linux | Mac | Unix | Windows | |---------------|:-------:|:----:|:-----:|:-------:| | SBCL | Yes | Yes | | Yes |

Note: I don't have Unix system so haven't test on Unix yet.

Install and load with QuickLisp

In shell:

git clone https://github.com/muyinliu/cl-cpus.git
cp -r cl-cpus ~/quicklisp/local-projects/

In Common Lisp:

(ql:quickload 'cl-cpus)

Usage

(cpus:get-number-of-processors)

will get number of CPUs:

8

Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 cl-cpus

Author

Muyinliu Xing <muyinliu@gmail.com>

License

ISC

Description

Get number of CPUs

Version

0.0.1

Dependency

cffi

Source

cl-cpus.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 cl-cpus.asd

Location

cl-cpus.asd

Systems

cl-cpus (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 cl-cpus/packages.lisp

Parent

cl-cpus (system)

Location

packages.lisp

Packages

cl-cpus


Previous: , Up: Lisp files   [Contents][Index]

3.1.3 cl-cpus/cl-cpus-linux.lisp

Dependency

packages.lisp (file)

Parent

cl-cpus (system)

Location

cl-cpus-linux.lisp

Exported Definitions

get-number-of-processors (function)

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 cl-cpus

Source

packages.lisp (file)

Nickname

cpus

Use List

common-lisp

Exported Definitions

get-number-of-processors (function)

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Functions

Function: get-number-of-processors ()
Package

cl-cpus

Source

cl-cpus-linux.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Constants

Constant: +sc-nprocessors-onln+
Package

cl-cpus

Source

cl-cpus-linux.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: sysconf NAME
Package

cl-cpus

Source

cl-cpus-linux.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   C   F   L  
Index Entry  Section

C
cl-cpus.asd: The cl-cpus<dot>asd file
cl-cpus/cl-cpus-linux.lisp: The cl-cpus/cl-cpus-linux<dot>lisp file
cl-cpus/packages.lisp: The cl-cpus/packages<dot>lisp file

F
File, Lisp, cl-cpus.asd: The cl-cpus<dot>asd file
File, Lisp, cl-cpus/cl-cpus-linux.lisp: The cl-cpus/cl-cpus-linux<dot>lisp file
File, Lisp, cl-cpus/packages.lisp: The cl-cpus/packages<dot>lisp file

L
Lisp File, cl-cpus.asd: The cl-cpus<dot>asd file
Lisp File, cl-cpus/cl-cpus-linux.lisp: The cl-cpus/cl-cpus-linux<dot>lisp file
Lisp File, cl-cpus/packages.lisp: The cl-cpus/packages<dot>lisp file

Jump to:   C   F   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   F   G   S  
Index Entry  Section

F
Function, get-number-of-processors: Exported functions
Function, sysconf: Internal functions

G
get-number-of-processors: Exported functions

S
sysconf: Internal functions

Jump to:   F   G   S  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   +  
C  
Index Entry  Section

+
+sc-nprocessors-onln+: Internal constants

C
Constant, +sc-nprocessors-onln+: Internal constants

Jump to:   +  
C  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   P   S  
Index Entry  Section

C
cl-cpus: The cl-cpus system
cl-cpus: The cl-cpus package

P
Package, cl-cpus: The cl-cpus package

S
System, cl-cpus: The cl-cpus system

Jump to:   C   P   S