File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
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 INTELFPGA_SIM_DEVICE_SPEC_DIR " INTELFPGA_SIM_DEVICE_SPEC_DIR"
269
271
270
272
#define ACL_RAND_HASH_SIZE 40
271
273
Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ const char *acl_get_offline_device_user_setting(int *use_offline_only_ret) {
109
109
} else {
110
110
// Look for multi-process simulator before old simulator.
111
111
setting = acl_getenv (" CL_CONTEXT_MPSIM_DEVICE_INTELFPGA" );
112
+ // Check if simulation board spec directory is set, which implies
113
+ // CL_CONTEXT_MPSIM_DEVICE_INTELFPGA if that is not set
114
+ if (!setting && acl_getenv (INTELFPGA_SIM_DEVICE_SPEC_DIR)) {
115
+ setting = " 1" ; // Use 1 simulator device by default
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