pymc-devs / pymc-devs/pytensor
ENH: Detect clang++ as a g++ alternative on Linux
Open
Nobody has claimed this yet.
C-backend
feature request
- Dominant language
- Python
- Stars
- 644
- Forks
- 208
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 16
Description
Before
pytensor will only attempt to use g++ as a C++ compiler when running on Linux.
After
Improve pytensor by:
- If the CXX environment variable is set, use the value to determine the C++ compiler
- Discover g++ or clang++ on any platform
Context for the issue:
Today, pytensor will only discover g++ on Linux even though it can/will use clang++ on MacOS.
I'd be willing to propose a change here but wanted to gauge maintainer interest, first.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named in the issue. Start by locating PyTensor's C++ compiler discovery logic and trace how Linux selects g++; done means honoring CXX when set and discovering either g++ or clang++ on any platform, with coverage for these cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100