🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@Mohataseem89
Copy link

1.grouped sections logically(BLAS/LAPACK,
MKL,threading,CPU Dispatch,SIMD )
2.added choices for options that have implied valid values
3.descriptions cleaned and standardized
4. default values remain untouched.

1.grouped sections logically(BLAS/LAPACK,
MKL,threading,CPU Dispatch,SIMD   )
2.added choices for options that have implied valid values
3.descriptions cleaned and standardized
4. default values remain untouched.
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Mohataseem89. This is mostly a cosmetic PR, which we normally prefer not to receive. But the choices addition is helpful, so I'm willing to review and merge this PR.

I added some comments that need to be addressed. In addition, the line spacing is inconsistent - please make it consistent by either using always 0 or always 1 empty line between options that are grouped together with a comment.

# Threading & Parallelism
option('disable-threading', type: 'boolean', value: false,
description: 'Disable threading support (see `NPY_ALLOW_THREADS` docs)')
description: 'Completely disable NumPy threading support')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The NPY_ALLOW_THREADS hint is useful, it guides the user to https://numpy.org/devdocs/reference/c-api/array.html#threading-support. Please restore its mention.

description: 'Order of LAPACK libraries to search for. E.g.: mkl,openblas,lapack')
description: 'Preferred search order for LAPACK libraries (e.g., mkl, openblas, lapack)')

option('allow-noblas', type: 'boolean', value: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This goes together with the blas/lapack options, it's better in its original place - please put it back there.

description: 'Symbol suffix for BLAS/LAPACK symbols (if any)')


# MKL / Library Behavior
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only a single option so doesn't seem to deserve a separate header; it's part of the BLAS options.

choices: ['auto', 'seq', 'iomp', 'gomp', 'tbb'],
description: 'Threading backend for MKL')

option('disable-svml', type: 'boolean', value: false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These three options should be part of the SIMD options sections

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

Successfully merging this pull request may close these issues.

2 participants