Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • pystencils pystencils
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pycodegen
  • pystencilspystencils
  • Issues
  • #24
Closed
Open
Issue created Sep 30, 2020 by Michael Kuron@kuronMaintainer

CBackend uses aligned_alloc, which requires C++17

backends/cbackend.py generates code that contains aligned_alloc. This is incompatible with our default compiler flags, which include -std=c++11. It is also incompatible with Walberla, which defaults to C++14. I guess GCC doesn't care, but I've seen the issue come up with the latest Apple Clang, which interprets the standard more strictly than it used to.

We need to fall back to posix_memalign on POSIX and _aligned_malloc on Windows.

Assignee
Assign to
Time tracking