Skip to main content

VEDA Tensorflow

Project description

VEDA TensorFlow

VEDA TensorFlow is a library to add device support for the NEC SX-Aurora TSUBASA into TensorFlow using the Pluggable Device API.

Github PyPI License Python Versions Maintenance Maintenance

Release Notes

VersionComment
v7
  • Added TF v2.13.* support
  • Added TF v2.12.* support
  • Fixed <v2.10.* support
v6
  • Added TF v2.11.* support
  • Added TF v2.10.* support
  • Upgraded to VEDA CPP API
v5
  • Added TF v2.9.* support
v4
  • Added BroadcastTo operation
  • Increased host_memory_allocate alignment to be 64, as lower values keep failing in isAligned()
v3
  • Bugfixes for loss functions
  • Added missing optimizers: SGD, Adadelta, Adagrad, Adam, and Adamax
  • Fixed possible segfault in PluggableDevice host_memory_allocate
v2
  • Minor changes to enable TF v2.7.1 and v2.8.0
  • Fixed vedaInit error checking to ignore if already initialized
v1 Initial Release

F.A.Q.

I get the error message: "Internal: platform is already registered with name: "NEC_SX_AURORA"

This error is caused by the combination of RH-Python38 package and using a VirtualEnv. Due to improper checking for symlinks in TensorFlow the device support library gets loaded and initialized twice causing this error message.

You can use the following workaround as long as the bug is not resolved in TensorFlow.

# BEGIN BUGFIX
import sys
import os

sys.path = list(set(os.path.realpath(p) for p in sys.path))

import site
getsitepackages = site.getsitepackages
def getsitepackages_(prefixes=None):
    return list(filter(lambda x: 'lib64' not in x, getsitepackages(prefixes)))
site.getsitepackages = getsitepackages_
# END BUGFIX

import tensorflow
...

I get the error message "tensorflow.python.framework.errors_impl.InvalidArgumentError: 'visible_device_list' listed an invalid Device id '1' but visible device count is 1"

This is a known problem within TF due to TF throws: "'visible_device_list' listed an invalid Device id" when using non-GPU PluggableDevices when using CUDA and VE devices at the same time. The VE devices get added to list of GPUs, ultimately creating invalid devices indices.

Either you need to manually patch your TF installation (see the TF issue), or use VEDA_VISIBLE_DEVICES=100 or CUDA_VISIBLE_DEVICES= to disable either the CUDA or VE devices.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

veda_tensorflow-2.10.1.post7-py3-none-manylinux_2_17_x86_64.whl (330.4 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

File details

Details for the file veda_tensorflow-2.10.1.post7-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for veda_tensorflow-2.10.1.post7-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 53f50f6df0d7fd73a2dd943b7452c3afc50f09d0053046e55ecf9e8d93098e24
MD5 7020299ad902e600863b125723579ded
BLAKE2b-256 44645e5a7ddcdcd0117b0be2eb69427ecfb1155e1b7f3596ef7c12f0dbba43e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page