Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML-252] Enable python package installation #253

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

argentea
Copy link
Contributor

  1. Use python package install process to build from source
  2. Generate a distribution package which can be installed alone
  3. Run kmeans example with pure python code

Todo:

  1. Match the other oneApi packages
  2. Use better api for user

@github-actions
Copy link

#252

@xwu99
Copy link
Collaborator

xwu99 commented Mar 27, 2023

Could you separate this to different PR. one to only enable python package, another one to update scripts. don't mix them together.

@@ -75,6 +75,6 @@ patchelf --set-soname libirng.so $TARGET_DIR/libirng.so

cp $CMPLR_ROOT/linux/compiler/lib/intel64_lin/libimf.so $TARGET_DIR
cp $CMPLR_ROOT/linux/lib/libOpenCL.so.1 $TARGET_DIR
cp $CMPLR_ROOT/linux/lib/libsycl.so.5 $TARGET_DIR
cp $CMPLR_ROOT/linux/lib/libsycl.so.6 $TARGET_DIR

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add some file existence check and report error for file missing?
I think we can build a list of files mapping from a specifc oneapi version to a list for files. such as oneapi_2023_1_libs=( libsycl.so.6 libintlc.so.5 ... ), then we just need to add a new version and update the file list when new oneapi come up.

@@ -17,4 +17,4 @@
#ADDRS="0","1","2","3","4","5","6","7"
#echo {\"name\": \"gpu\", \"addresses\":[\"$ADDRS\"]}

echo {\"name\": \"gpu\", \"addresses\":[\"0\",\"1\",\"2\",\"3\"]}
echo {\"name\": \"gpu\", \"addresses\":[\"0\"]}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to keep at least 2 GPUs as example. pls revise below as well. And could we move this file to a common place since it's common for all GPU examples.


# Should run in standalone mode
time $SPARK_HOME/bin/spark-submit --master $SPARK_MASTER \
time $SPARK_HOME/bin/spark-submit --master spark://kunpeng:7077 \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use internal hostname

pyoap/setup.py Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename top level dir pyoap to python according to pyspark name structure
rename all pyoap in the file to oapmllib since oap is an umbrella project. oap mllib is only part of it.

@xwu99
Copy link
Collaborator

xwu99 commented Apr 3, 2023

please rebase to master the resolve comments.

@argentea argentea force-pushed the pip-package branch 2 times, most recently from 75b021f to c90ad22 Compare August 16, 2023 02:20
@xwu99
Copy link
Collaborator

xwu99 commented Aug 23, 2023

@argentea could you rebase to master?

@argentea argentea force-pushed the pip-package branch 2 times, most recently from dc737b8 to c498587 Compare August 24, 2023 06:17
@argentea argentea changed the base branch from oneapi_interface to master August 24, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants