Skip to content

MAINT: refactor _Distutils out of CCompiler_Opt #46

@mattip

Description

@mattip

As part of PR numpy#13516, we added a CCompilerOpt class in numpy/distutils/ccompiler_opt.py. The class implements the compiler side of NEP0038 SIMD optimizations which

  • parses the command line arguments --cpu-baseline and --cpu-dispatch
  • probes the compiler to make sure the requested features can be used
  • creates header files with appropriate #define macros
  • caches the results for recompilation
  • reports results and errors to the console.

The code as-is should be refactored to reuse more of the distuitils infrastructure where possible. In particular, the _Distutils class re-implements logging and compilation: tasks that should be delegated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions