Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

C++17: take advantage of overaligned operator new and aligned_alloc #836

Description

@olupton

In #834 we will increase the minimum C++ standard to C++17.

This should allow TODO items like

// Allocate using standard operator new.
// When we have C++17 support then propagate `alignment` here.
to be addressed. This should be helpful (also in NEURON) for structures that should be allocated overaligned (e.g. for SSE/AVX).

An initial attempt at addressing this was introduced in #834, but then removed again. Check the intermediate versions of that PR.

We can also use std::aligned_alloc instead of posix_memalign, and so on.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions