Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 3904df3

Browse files
Preparation for Release 0.10 (#388)
* Added support for using pre-built binaries * Added a target_build option to specify the target flags to be used for building the s/w. * Refactored the test_ngtf.py to be able to use the functions from outside * Added testing with resnet50 training and inference models * Added -j <num_cores> * Updated the version number to v0.10.0-rc0.
1 parent 792deec commit 3904df3

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ if (NOT USE_PRE_BUILT_NGRAPH)
231231
ExternalProject_Add(
232232
ext_ngraph
233233
GIT_REPOSITORY https://github.com/NervanaSystems/ngraph
234-
GIT_TAG v0.11.0
234+
GIT_TAG v0.12.0-rc.0
235235
CMAKE_ARGS
236236
-DNGRAPH_DISTRIBUTED_ENABLE=${NGRAPH_DISTRIBUTED_ENABLE}
237237
-DNGRAPH_INSTALL_PREFIX=${NGRAPH_ARTIFACTS_DIR}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The installation prerequisites are the same as described in the TensorFlow
8484

8585
git clone https://github.com/NervanaSystems/ngraph-tf.git
8686
cd ngraph-tf
87-
git checkout v0.9.0
87+
git checkout v0.10.0
8888

8989

9090
2. Next run the following Python script to build TensorFlow, nGraph and the bridge:

build_ngtf.py

+21-7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
# ==============================================================================
17+
1718
import argparse
1819
from argparse import RawTextHelpFormatter
1920

@@ -305,6 +306,9 @@ def build_ngraph_tf(artifacts_location, ngtf_src_loc, venv_dir, cmake_flags, ver
305306
os.chdir(os.path.join("python", "dist"))
306307
ngtf_wheel_files = glob.glob("ngraph_tensorflow_bridge-*.whl")
307308
if (len(ngtf_wheel_files) != 1):
309+
print("Multiple Python whl files exist. Please remove old wheels")
310+
for whl in nnp_wheel_files:
311+
print(whl)
308312
raise Exception("Error getting the ngraph-tf wheel file")
309313

310314
output_wheel = ngtf_wheel_files[0]
@@ -372,6 +376,11 @@ def main():
372376
help="Display verbose error messages\n",
373377
action="store_true")
374378

379+
parser.add_argument(
380+
'--target_arch',
381+
help="Architecture flag to use (e.g., haswell, core-avx2 etc. Default \'native\'\n",
382+
)
383+
375384
parser.add_argument(
376385
'--use_prebuilt_binaries',
377386
help="Skip building nGraph and TensorFlow. Rather use \"build\" directory.\n" +
@@ -406,7 +415,7 @@ def main():
406415
#-------------------------------
407416

408417
# Component versions
409-
ngraph_version = "v0.11.0"
418+
ngraph_version = "v0.12.0-rc.0"
410419
tf_version = "v1.12.0"
411420

412421
# Default directories
@@ -441,10 +450,13 @@ def main():
441450
# Setup the virtual env
442451
setup_venv(venv_dir)
443452

444-
#target_arch = 'native'
445-
#if (platform.system() != 'Darwin'):
446-
target_arch = 'core-avx2'
453+
target_arch = 'native'
454+
if (arguments.target_arch):
455+
target_arch = arguments.target_arch
456+
457+
print("Target Arch: %s" % target_arch)
447458

459+
cxx_abi = 0
448460
if not use_prebuilt_binaries:
449461
# Download TensorFlow
450462
download_repo("tensorflow",
@@ -453,11 +465,13 @@ def main():
453465

454466
# Build TensorFlow
455467
build_tensorflow(venv_dir, "tensorflow", artifacts_location, target_arch, verbosity)
468+
469+
# Install tensorflow
470+
cxx_abi = install_tensorflow(venv_dir, artifacts_location)
456471
else:
457472
print("Skipping the TensorFlow build")
458-
459-
# Install tensorflow
460-
cxx_abi = install_tensorflow(venv_dir, artifacts_location)
473+
import tensorflow as tf
474+
cxx_abi = tf.__cxx11_abi_flag__
461475

462476
if not use_prebuilt_binaries:
463477
# Download nGraph

python/setup.in.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_tag(self):
3939

4040
setup(
4141
name='ngraph_tensorflow_bridge',
42-
version='0.9.0',
42+
version='0.10.0-rc0',
4343
description='Intel nGraph compiler and runtime for TensorFlow',
4444
long_description=long_description,
4545
long_description_content_type="text/markdown",

src/version.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
// nGraph-TensorFlow bridge uses semantic versioning: see http://semver.org/
2222

2323
#define NG_TF_MAJOR_VERSION 0
24-
#define NG_TF_MINOR_VERSION 9
24+
#define NG_TF_MINOR_VERSION 10
2525
#define NG_TF_PATCH_VERSION 0
2626

2727
// The version suffix is used for pre-release version numbers
2828
// For example before v0.7.0 we may do a pre-release i.e., a release
2929
// candidate such as v0.7.0-rc0
30-
#define NG_TF_VERSION_SUFFIX ""
30+
#define NG_TF_VERSION_SUFFIX "-rc0"
3131

3232
#define VERSION_STR_HELPER(x) #x
3333
#define VERSION_STR(x) VERSION_STR_HELPER(x)

0 commit comments

Comments
 (0)