Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #17 from qiboteam/tf270
Browse files Browse the repository at this point in the history
upgrading tf to 2.7.0
  • Loading branch information
scarrazza authored Nov 7, 2021
2 parents 82f222c + 13de5a9 commit 43e3b9a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Here a compatibility matrix for the qibotf versions:

| qibotf | ref. qibo | tensorflow | OS Hardware | CUDA |
|--------|-----------|----------------------------------|-----------------------------------------|------|
| 0.0.4 | >=0.1.7 | 2.6.2 for pip (>=2.2 for source) | linux cpu/gpu, mac cpu(pip)/gpu(source) | 11.2 |
| 0.0.4 | >=0.1.7 | 2.7.0 for pip (>=2.2 for source) | linux cpu/gpu, mac cpu(pip)/gpu(source) | 11.2 |
| 0.0.3 | 0.1.6 | 2.6.0 for pip (>=2.2 for source) | linux cpu/gpu, mac cpu(pip)/gpu(source) | 11.2 |
| 0.0.2 | 0.1.6 | 2.5.0 for pip (>=2.2 for source) | linux cpu/gpu, mac cpu(pip)/gpu(source) | 11.2 |
| 0.0.1 | 0.1.6 | 2.4.1 for pip (>=2.2 for source) | linux cpu/gpu, mac cpu(pip)/gpu(source) | 11.0 |
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Runtime requirements for qibotf

tensorflow>=2.2,<=2.6.2
tensorflow>=2.2,<=2.7.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def finalize_options(self):
"Topic :: Scientific/Engineering :: Physics",
],
install_requires=requirements,
python_requires=">=3.6.0",
python_requires=">=3.7.0",
long_description=long_description,
long_description_content_type='text/markdown',
)
4 changes: 2 additions & 2 deletions src/qibotf/custom_operators/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SOURCES = $(filter-out $(CUDASRC), $(SRCS))
TF_CFLAGS := $(shell $(PYTHON_BIN_PATH) -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))')
TF_LFLAGS := $(shell $(PYTHON_BIN_PATH) -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))')

CFLAGS = ${TF_CFLAGS} -fPIC -O2 -std=c++11
CFLAGS = ${TF_CFLAGS} -fPIC -O2 -std=c++14
ifeq ($(UNAME_S),Linux)
CFLAGS += -fopenmp
endif
Expand All @@ -38,7 +38,7 @@ ifeq ($(UNAME_S),Darwin)
endif

CFLAGS_CUDA = $(CFLAGS) -D GOOGLE_CUDA=1 -I$(CUDA_PATH)/include
CFLAGS_NVCC = ${TF_CFLAGS} -O2 -std=c++11 -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -DNDEBUG --expt-relaxed-constexpr
CFLAGS_NVCC = ${TF_CFLAGS} -O2 -std=c++14 -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -DNDEBUG --expt-relaxed-constexpr

LDFLAGS = -shared ${TF_LFLAGS}
ifeq ($(UNAME_S),Darwin)
Expand Down

0 comments on commit 43e3b9a

Please sign in to comment.