File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,8 @@ typedef struct {
266
266
267
267
/* Must match definition in aoc.pl */
268
268
#define ACL_MPSIM_DEVICE_NAME " SimulatorDevice"
269
+ /* Specifies which device simulator should simulate */
270
+ #define ACL_MPSIM_PRJ_DIR " ACL_MPSIM_BOARD_SPEC_DIR"
269
271
270
272
#define ACL_RAND_HASH_SIZE 40
271
273
Original file line number Diff line number Diff line change @@ -108,7 +108,12 @@ const char *acl_get_offline_device_user_setting(int *use_offline_only_ret) {
108
108
}
109
109
} else {
110
110
// Look for multi-process simulator before old simulator.
111
- setting = acl_getenv (" CL_CONTEXT_MPSIM_DEVICE_INTELFPGA" );
111
+ // Check if simulation board spec directory is set, which shadows
112
+ // CL_CONTEXT_MPSIM_DEVICE_INTELFPGA
113
+ setting = acl_getenv (ACL_MPSIM_PRJ_DIR);
114
+ if (!setting) {
115
+ setting = acl_getenv (" CL_CONTEXT_MPSIM_DEVICE_INTELFPGA" );
116
+ }
112
117
if (setting) {
113
118
use_offline_only = ACL_CONTEXT_MPSIM;
114
119
result = setting;
You can’t perform that action at this time.
0 commit comments