-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pad to cache aligned size based on architecture and OCaml version
- Loading branch information
Showing
10 changed files
with
108 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let words_per_cache_line = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let words_per_cache_line = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let words_per_cache_line = 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let words_per_cache_line = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
val words_per_cache_line : int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,51 @@ | ||
(library | ||
(name Multicore_magic) | ||
(public_name multicore-magic)) | ||
|
||
(rule | ||
(targets cache.ml) | ||
(deps cache.1.ml) | ||
(enabled_if | ||
(< %{ocaml_version} 5.0.0)) | ||
(action | ||
(progn | ||
(copy cache.1.ml cache.ml)))) | ||
|
||
(rule | ||
(targets cache.ml) | ||
(deps cache.8.ml) | ||
(enabled_if | ||
(and | ||
(>= %{ocaml_version} 5.0.0) | ||
(not | ||
(or | ||
(= %{architecture} arm64) | ||
(= %{architecture} power) | ||
(= %{architecture} s390x))))) | ||
(action | ||
(progn | ||
(copy cache.8.ml cache.ml)))) | ||
|
||
(rule | ||
(targets cache.ml) | ||
(deps cache.16.ml) | ||
(enabled_if | ||
(and | ||
(>= %{ocaml_version} 5.0.0) | ||
(or | ||
(= %{architecture} arm64) | ||
(= %{architecture} power)))) | ||
(action | ||
(progn | ||
(copy cache.16.ml cache.ml)))) | ||
|
||
(rule | ||
(targets cache.ml) | ||
(deps cache.32.ml) | ||
(enabled_if | ||
(and | ||
(>= %{ocaml_version} 5.0.0) | ||
(= %{architecture} s390x))) | ||
(action | ||
(progn | ||
(copy cache.32.ml cache.ml)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters