Skip to content

Commit 44c9002

Browse files
committed
globals: change name of the simulator device spec dir environment variable
1 parent 9e8c84e commit 44c9002

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/acl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ typedef struct {
267267
/* Must match definition in aoc.pl */
268268
#define ACL_MPSIM_DEVICE_NAME "SimulatorDevice"
269269
/* Specifies which device simulator should simulate */
270-
#define ACL_MPSIM_DEVICE_SPEC_DIR "ACL_MPSIM_DEVICE_SPEC_DIR"
270+
#define INTELFPGA_SIM_DEVICE_SPEC_DIR "INTELFPGA_SIM_DEVICE_SPEC_DIR"
271271

272272
#define ACL_RAND_HASH_SIZE 40
273273

src/acl_globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const char *acl_get_offline_device_user_setting(int *use_offline_only_ret) {
111111
setting = acl_getenv("CL_CONTEXT_MPSIM_DEVICE_INTELFPGA");
112112
// Check if simulation board spec directory is set, which implies
113113
// CL_CONTEXT_MPSIM_DEVICE_INTELFPGA if that is not set
114-
if (acl_getenv(ACL_MPSIM_DEVICE_SPEC_DIR) && (!setting)) {
114+
if (acl_getenv(INTELFPGA_SIM_DEVICE_SPEC_DIR) && (!setting)) {
115115
setting = "1"; // Use 1 simulator device by default
116116
}
117117
if (setting) {

0 commit comments

Comments
 (0)