-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update emr example and add initmode setter to kmeans (#767)
* update emr example and add init mode setter to kmeans Signed-off-by: Erik Ordentlich <[email protected]> * clean up Signed-off-by: Erik Ordentlich <[email protected]> * no auto fail to avoid a hang Signed-off-by: Erik Ordentlich <[email protected]> --------- Signed-off-by: Erik Ordentlich <[email protected]>
- Loading branch information
1 parent
668b20e
commit ced8bed
Showing
9 changed files
with
120 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
sudo chmod a+rwx -R /sys/fs/cgroup/cpu,cpuacct | ||
sudo chmod a+rwx -R /sys/fs/cgroup/devices | ||
|
||
sudo yum install -y gcc openssl-devel bzip2-devel libffi-devel tar gzip wget make mysql-devel | ||
sudo bash -c "wget https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz && tar xzf Python-3.9.9.tgz && cd Python-3.9.9 && ./configure --enable-optimizations && make altinstall" | ||
sudo mkdir -p /spark-rapids-cgroup/devices | ||
sudo mount -t cgroup -o devices cgroupv1-devices /spark-rapids-cgroup/devices | ||
sudo chmod a+rwx -R /spark-rapids-cgroup | ||
|
||
RAPIDS_VERSION=24.8.0 | ||
sudo yum update -y | ||
sudo yum install -y gcc bzip2-devel libffi-devel tar gzip wget make | ||
sudo yum install -y mysql-devel --skip-broken | ||
sudo bash -c "wget https://www.python.org/ftp/python/3.10.9/Python-3.10.9.tgz && \ | ||
tar xzf Python-3.10.9.tgz && cd Python-3.10.9 && \ | ||
./configure --enable-optimizations && make altinstall" | ||
|
||
RAPIDS_VERSION=24.10.0 | ||
|
||
sudo /usr/local/bin/pip3.10 install --upgrade pip | ||
|
||
# install scikit-learn | ||
sudo /usr/local/bin/pip3.9 install scikit-learn | ||
sudo /usr/local/bin/pip3.10 install scikit-learn | ||
|
||
# install cudf and cuml | ||
sudo /usr/local/bin/pip3.9 install --no-cache-dir cudf-cu11==${RAPIDS_VERSION} \ | ||
cuml-cu11==${RAPIDS_VERSION} \ | ||
cuvs-cu11==${RAPIDS_VERSION} \ | ||
pylibraft-cu11==${RAPIDS_VERSION} \ | ||
rmm-cu11==${RAPIDS_VERSION} \ | ||
--extra-index-url=https://pypi.nvidia.com | ||
sudo /usr/local/bin/pip3.10 install --no-cache-dir cudf-cu12 --extra-index-url=https://pypi.nvidia.com --verbose | ||
sudo /usr/local/bin/pip3.10 install --no-cache-dir cuml-cu12 cuvs-cu12 --extra-index-url=https://pypi.nvidia.com --verbose | ||
|
||
sudo /usr/local/bin/pip3.10 list | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters