Skip to content

Commit aae308b

Browse files
committed
python3-pytorch: WIP recipe change to fake CUDA using chipStar
Signed-off-by: Zoltán Böszörményi <[email protected]>
1 parent e597a4a commit aae308b

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

recipes-python/pytorch/python3-pytorch_2.3.1.bb

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ DEPENDS = " \
1414
"
1515

1616
DEPENDS:append:class-target = " \
17-
zstd-native intel-oneapi-mkl intel-oneapi-dpcpp-cpp \
18-
onednn tbb glog gloo numactl opencv \
19-
opencl-headers virtual/opencl-icd \
17+
zstd-native glog gloo numactl \
18+
chipstar-native chipstar virtual/opencl-icd \
2019
shaderc spirv-tools mesa vulkan-headers vulkan-loader \
2120
python3-numpy python3-typing-extensions python3-pyyaml \
2221
python3-pybind11 python3-pytorch-native \
@@ -230,9 +229,6 @@ BUILD_CFLAGS += " \
230229
-Wno-error=uninitialized \
231230
"
232231

233-
LDFLAGS:append:class-target = " -ldnnl"
234-
BUILD_LDFLAGS:append:class-target = " -ldnnl"
235-
236232
# Leave these variables below un-indented.
237233
# The contents of EXTRA_OECMAKE is split in python code,
238234
# which expects a single space between pieces.
@@ -249,12 +245,8 @@ EXTRA_OECMAKE = "\
249245
-DPYTHON_LIBRARY=${STAGING_DIR}/${libdir}/${PYTHON_DIR} \
250246
-DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR} \
251247
-DGLIBCXX_USE_CXX11_ABI=1 \
252-
-DBLAS=MKL \
253-
-DUSE_MKLDNN=ON \
254-
-DUSE_MKLDNN_CBLAS=ON \
255-
-DBUILD_ONEDNN_GRAPH=ON \
256248
-DUSE_ITT=OFF \
257-
-DUSE_CUDA=OFF \
249+
-DUSE_CUDA=ON \
258250
-DUSE_FFMPEG=OFF \
259251
-DBUILD_CAFFE2=ON \
260252
-DBUILD_CAFFE2_OPS=ON \
@@ -263,11 +255,10 @@ EXTRA_OECMAKE = "\
263255
-DUSE_SYSTEM_SLEEF=ON \
264256
-DUSE_GOLD_LINKER=ON \
265257
-DUSE_TBB=ON \
266-
-DUSE_SYSTEM_TBB=ON \
267258
-DUSE_GFLAGS=ON \
268259
-DUSE_GLOG=ON \
269-
-DUSE_OPENCL=OFF \
270-
-DUSE_OPENCV=ON \
260+
-DUSE_OPENCL=ON \
261+
-DUSE_OPENCV=OFF \
271262
-DUSE_VULKAN=ON \
272263
-DUSE_VULKAN_FP16_INFERENCE=ON \
273264
-DUSE_VULKAN_RELAXED_PRECISION=ON \
@@ -296,6 +287,12 @@ EXTRA_OECMAKE:class-native = "\
296287

297288
export CMAKE_TOOLCHAIN_FILE="${WORKDIR}/toolchain.cmake"
298289

290+
# For chipStar: Fake CUDA 12.0.0
291+
#CUCC_VERSION_STRING = "12.0.0"
292+
#export CUCC_VERSION_STRING
293+
export STAGING_BINDIR_NATIVE
294+
export STAGING_EXECPREFIXDIR
295+
299296
do_configure () {
300297
export EXTRA_OECMAKE="${EXTRA_OECMAKE}"
301298
setuptools3_legacy_do_configure
@@ -337,9 +334,7 @@ FILES:${PN} += " \
337334
INSANE_SKIP:${PN} = "dev-so"
338335

339336
RDEPENDS:${PN}:class-target = " \
340-
sleef glslang gflags zstd \
341-
intel-oneapi-mkl intel-oneapi-dpcpp-cpp-runtime \
342-
onednn tbb glog numactl opencv \
337+
sleef glslang gflags zstd glog numactl \
343338
shaderc spirv-tools vulkan-loader \
344339
python3-numpy python3-typing-extensions \
345340
python3-pyyaml python3-pybind11 \

0 commit comments

Comments
 (0)