Skip to content

Commit

Permalink
Update path of file to make it work (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Sep 22, 2017
1 parent 5c29747 commit 22fbf89
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
MAX_Y_SIZE_OF_FABRIC = 7

# set up the front end and ask for the detected machines dimensions
front_end.setup(n_chips_required=2, model_binary_folder=os.getcwd())
front_end.setup(
n_chips_required=2, model_binary_folder=os.path.dirname(__file__))

# figure out if machine can handle simulation
cores = front_end.get_number_of_available_cores_on_machine()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
MAX_Y_SIZE_OF_FABRIC = 7

# set up the front end and ask for the detected machines dimensions
front_end.setup(n_chips_required=2, model_binary_folder=os.getcwd())
front_end.setup(
n_chips_required=2, model_binary_folder=os.path.dirname(__file__))

# figure out if machine can handle simulation
cores = front_end.get_number_of_available_cores_on_machine()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

logger = logging.getLogger(__name__)

front_end.setup(n_chips_required=None, model_binary_folder=os.getcwd())
front_end.setup(
n_chips_required=None, model_binary_folder=os.path.dirname(__file__))

# calculate total number of 'free' cores for the given board
# (i.e. does not include those busy with SARK or reinjection)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

logger = logging.getLogger(__name__)

front_end.setup(n_chips_required=None, model_binary_folder=os.getcwd())
front_end.setup(
n_chips_required=None, model_binary_folder=os.path.dirname(__file__))

# calculate total number of 'free' cores for the given board
# (i.e. does not include those busy with SARK or reinjection)
Expand Down

0 comments on commit 22fbf89

Please sign in to comment.