- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When using oneAPI tbb, Visual Studio 2019 throws a handful of warnings in _task.h, as shown below:
Warning C4324 'tbb::detail::d1::task': structure was padded due to alignment specifier DeepC C:\Program Files (x86)\Intel\oneAPI\tbb\2021.1.1\include\oneapi\tbb\detail\_task.h 233
Is this actually a problem? If so is there a resolution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This warning is not likely an actual problem. This warning indicates that memory alignment was requested, and a datatype was padded out to meet that request.
For example, if you request aligning on a 64 byte boundary, a 72 byte object will need to be padded out to 128 bytes in order to maintain alignment.
The warning is emitted because you might not have intended this. Alignment helps with data movement, especially in relation to SIMD code. But it does increase the memory footprint.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This warning is not likely an actual problem. This warning indicates that memory alignment was requested, and a datatype was padded out to meet that request.
For example, if you request aligning on a 64 byte boundary, a 72 byte object will need to be padded out to 128 bytes in order to maintain alignment.
The warning is emitted because you might not have intended this. Alignment helps with data movement, especially in relation to SIMD code. But it does increase the memory footprint.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page