Skip to content

Commit 1a46aca

Browse files
Update STREAMer.py
1 parent 9d3b58f commit 1a46aca

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

STREAMer.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
memory_group.add_argument('--Socket1DDR4DAX', action='store_true', help='Use DAX DDR4 memory on Socket1')
2828
memory_group.add_argument('--Socket0DDR5DAX', action='store_true', help='Use DAX DDR5 memory on Socket0')
2929
memory_group.add_argument('--Socket1DDR5DAX', action='store_true', help='Use DAX DDR5 memory on Socket1')
30+
memory_group.add_argument('--Socket0OptaneDAX', action='store_true', help='Use DAX Optane memory on Socket0')
31+
memory_group.add_argument('--Socket1OptaneDAX', action='store_true', help='Use DAX Optane memory on Socket1')
3032

3133
# Thread Affinity option
3234
affinity_group = parser.add_mutually_exclusive_group()
@@ -62,7 +64,7 @@
6264
if not args.Socket0 and not args.Socket1 and not args.Socket0Socket1:
6365
args.Socket0 = True
6466

65-
if not args.Socket0DDR4 and not args.Socket1DDR4 and not args.CXLDDR4 and not args.Socket0DDR5 and not args.Socket1DDR5 and not args.CXLDAX and not args.Socket0DDR4DAX and not args.Socket1DDR4DAX and not args.Socket0DDR5DAX and not args.Socket1DDR5DAX:
67+
if not args.Socket0DDR4 and not args.Socket1DDR4 and not args.CXLDDR4 and not args.Socket0DDR5 and not args.Socket1DDR5 and not args.CXLDAX and not args.Socket0DDR4DAX and not args.Socket1DDR4DAX and not args.Socket0DDR5DAX and not args.Socket1DDR5DAX and not args.Socket0OptaneDAX and not args.Socket1OptaneDAX:
6668
args.Socket0DDR4 = True
6769

6870
if not args.Close and not args.Spread:
@@ -106,6 +108,10 @@
106108
print('Using DAX DDR5 memory on Socket0')
107109
elif args.Socket1DDR5DAX:
108110
print('Using DAX DDR5 memory on Socket1')
111+
elif args.Socket0OptaneDAX:
112+
print('Using DAX Optane memory on Socket0')
113+
elif args.Socket1OptaneDAX:
114+
print('Using DAX Optane memory on Socket1')
109115

110116
if args.Close:
111117
print('Using close thread affinity')
@@ -131,7 +137,7 @@
131137
elif args.Socket0Socket1:
132138
folder_name += 'Socket0Socket1_'
133139

134-
if args.Socket0DDR4 or args.Socket1DDR4 or args.CXLDDR4 or args.Socket0DDR5 or args.Socket1DDR5 or args.CXLDAX or args.Socket0DDR4DAX or args.Socket1DDR4DAX or args.Socket0DDR5DAX or args.Socket1DDR5DAX:
140+
if args.Socket0DDR4 or args.Socket1DDR4 or args.CXLDDR4 or args.Socket0DDR5 or args.Socket1DDR5 or args.CXLDAX or args.Socket0DDR4DAX or args.Socket1DDR4DAX or args.Socket0DDR5DAX or args.Socket1DDR5DAX or args.Socket0OptaneDAX or args.Socket1OptaneDAX:
135141
if args.Socket0DDR4:
136142
folder_name += 'Socket0DDR4_'
137143
elif args.Socket1DDR4:
@@ -152,6 +158,11 @@
152158
folder_name += 'Socket0DDR5DAX_'
153159
elif args.Socket1DDR5DAX:
154160
folder_name += 'Socket1DDR5DAX_'
161+
elif args.Socket1OptaneDAX:
162+
folder_name += 'Socket1OptaneDAX_'
163+
elif args.Socket1OptaneDAX:
164+
folder_name += 'Socket1OptaneDAX_'
165+
155166

156167
if args.Close or args.Spread:
157168
folder_name += 'Close_' if args.Close else 'Spread_'
@@ -171,4 +182,3 @@
171182
print(f"Folder '{folder_name}' has been created.")
172183
else:
173184
print("No folder needs to be created.")
174-

0 commit comments

Comments
 (0)