Skip to content

Commit d8ec332

Browse files
Deb, DiptorupPokhodenkoSA
authored andcommitted
Refactored the folder structure for PyDPPL
1 parent 8ddb4d9 commit d8ec332

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+19
-2076
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,6 @@ target/
7272

7373
# pyenv python configuration file
7474
.python-version
75+
76+
# generated Cython files
77+
_dppl_bindings*
File renamed without changes.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
What?
22
====
3-
A lightweight Python package exposing a subset of OpenCL and SYCL
3+
A lightweight Python package exposing a subset of OpenCL and SYCL
44
functionalities.
55

66

@@ -10,10 +10,10 @@ How to install?
1010
2. Install conda or miniconda (you can use the conda that comes with oneAPI).
1111
3. [Optional] Create and activate a conda environment:
1212

13-
`bash conda env create -n dppl-env -f environment.yml`
14-
13+
`bash conda env create -n dppl-env -f scripts/environment.yml`
14+
1515
`conda activate dppl-env`
16-
4. Run `./build_for_conda.sh`
16+
4. Run `./scripts/build_for_conda.sh`
1717

1818
Examples:
1919
===
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ else
1111
exit 1
1212
fi
1313

14-
rm -rf build
15-
mkdir build
16-
cd build
14+
rm -rf build_cmake
15+
mkdir build_cmake
16+
cd build_cmake
1717

1818
PYTHON_INC=`${PYTHON} -c "import distutils.sysconfig; \
1919
print(distutils.sysconfig.get_python_inc())"`
@@ -29,11 +29,11 @@ cmake \
2929
-DCMAKE_CXX_COMPILER:PATH=${DPCPP_ROOT}/bin/dpcpp \
3030
-DPYTHON_INCLUDE_DIR=${PYTHON_INC} \
3131
-DNUMPY_INCLUDE_DIR=${NUMPY_INC} \
32-
..
32+
../oneapi_wrapper
3333

3434
make -j 4 && make install
3535

36-
cd ../python_binding
36+
cd ..
3737

3838
# required by dpglue
3939
export DP_GLUE_LIBDIR=${PREFIX}

0 commit comments

Comments
 (0)