mirror of
https://github.com/amd/blis.git
synced 2026-05-04 06:21:12 +00:00
More memory alignment-related tweaks.
Details: - Renamed BLIS_MEMORY_ALIGNMENT_SIZE to BLIS_CONTIG_MEM_ALIGN_SIZE. - Renamed BLIS_ENABLE_MEMORY_ALIGNMENT to BLIS_ENABLE_SYSTEM_MEM_ALIGN. - Added BLIS_SYSTEM_MEM_ALIGN_SIZE, which controls only the alignment passed into posix_memalign() or equivalent. - Defined new function, bli_align_dim_to_cmem(), which applies the contiguous memory alignment (rather than the system/malloc alignment).
This commit is contained in:
@@ -60,12 +60,15 @@
|
||||
|
||||
// -- MEMORY ALLOCATOR ---------------------------------------------------------
|
||||
|
||||
// Enable memory alignment?
|
||||
// NOTE: This should stay enabled!
|
||||
#define BLIS_ENABLE_MEMORY_ALIGNMENT 1
|
||||
// Enable memory alignment when allocating memory from operating system?
|
||||
#define BLIS_ENABLE_SYSTEM_MEM_ALIGN 1
|
||||
|
||||
// Set the memory alignment boundary size.
|
||||
#define BLIS_MEMORY_ALIGNMENT_SIZE 16
|
||||
// Alignment size used when allocating memory from operating system.
|
||||
#define BLIS_SYSTEM_MEM_ALIGN_SIZE 16
|
||||
|
||||
// Alignment size used when allocating contiguous memory from memory
|
||||
// allocator.
|
||||
#define BLIS_CONTIG_MEM_ALIGN_SIZE 16
|
||||
|
||||
// The number of MC x KC, KC x NC, and MC x NC blocks to reserve in the
|
||||
// contiguous memory pools.
|
||||
|
||||
Reference in New Issue
Block a user