pymc-devs / pymc-devs/pytensor

ENH: Detect clang++ as a g++ alternative on Linux

Open
#762 2 comments 0 reactions 0 assignees View on GitHub

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:

  1. If the CXX environment variable is set, use the value to determine the C++ compiler
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.