-
Notifications
You must be signed in to change notification settings - Fork 2
/
ExaBoundsInit.m
42 lines (36 loc) · 1.56 KB
/
ExaBoundsInit.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
(*******************************************************************************
* (C) Copyright IBM Corporation 2017
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Algorithms & Machines team
*******************************************************************************)
(* Mathematica package *)
ClearAll["Global`*"] (* Clear everything to always start with a blank slate. *)
(* Directory structure *)
rootPathExaBounds = DirectoryName[FindFile["ExaBoundsLite.nb"]];
AppendTo[$Path, FileNameJoin[{rootPathExaBounds, "AlgorithmExtrapolation"}]];
AppendTo[$Path, FileNameJoin[{rootPathExaBounds, "Algorithms"}]];
AppendTo[$Path, FileNameJoin[{rootPathExaBounds, "CacheModel"}]];
AppendTo[$Path, FileNameJoin[{rootPathExaBounds, "DataInOut"}]];
AppendTo[$Path, FileNameJoin[{rootPathExaBounds, "CommunicationModel"}]];
AppendTo[$Path, FileNameJoin[{rootPathExaBounds, "MeSAP"}]];
AppendTo[$Path, FileNameJoin[{rootPathExaBounds, "DSE"}]];
<< "Units`"
<< "NumericalCalculus`"
(* Include ExaBounds packages *)
<< "ExaBoundsGeneric`"
<< "ModelWarnings`"
<< "ArchitectureProperties`"
<< "AlgorithmProperties`"
<< "AlgorithmFromFileJSON`"
<< "VectorSizeConvert`"
<< "Support`"
<< "DSEVisualization`"
(* Initialization of the ExaBoundsState variable*)
ExaBoundsState = InitArchitectureProperties[];
AlgorithmMinMaxValues = InitAlgorithmMinMax[];