Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Refactoring and fixing build #22

Merged
merged 8 commits into from
Jun 9, 2023
Merged

Refactoring and fixing build #22

merged 8 commits into from
Jun 9, 2023

Conversation

BradReesWork
Copy link
Member

@BradReesWork BradReesWork commented May 31, 2023

Do not be scared by the large number of files. I moved directories and it includes all the files in those directories.
Only files changed

  • build.sh
  • CMakeList.txt

Moved some folders around to better follow RAPIDS.
Changes some build commons to match other RAPIDS so that arguments are consistent
updated the build process (cmake) for the new paths/folders
Added an empty CHANGELOG file

The next PR will address docs, so ignore that part of the build script

@BradReesWork BradReesWork changed the base branch from branch-23.06 to refactoring May 31, 2023 18:09
@BradReesWork BradReesWork added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels May 31, 2023
build.sh Outdated Show resolved Hide resolved
Co-authored-by: dongxuy04 <[email protected]>
@BradReesWork
Copy link
Member Author

@dongxuy04 thanks for catching that cut&paste error

Copy link

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

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

found a small issue but other than that it LGTM

build.sh Outdated
--compile-cmd
--clean
-h
--help"
Copy link

Choose a reason for hiding this comment

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

I think the closing quote needs to be on a new line by itself (see feedback below)

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

build.sh Outdated
@@ -94,29 +140,62 @@ if (( ${NUMARGS} != 0 )); then
# Check for cmake args
cmakeArgs
for a in ${ARGS}; do
if ! (echo " ${VALIDARGS} " | grep -q " ${a} "); then
if ! (echo " ${VALIDARGS} " | grep -q "^[[:blank:]]*${a}$"); then
Copy link

Choose a reason for hiding this comment

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

There's a slight bug with the change above where the values for VALIDARGS are one-per-line. I tried this locally and the last arg in VALIDARGS is no longer recognized:

~$ ./build.sh --help
Invalid option: --help

I think this just needs to have the closing quote for --help where VALIDARGS is set above be on a separate line. Using the new grep pattern, you can also drop the spaces around ${VALIDARGS}:

Suggested change
if ! (echo " ${VALIDARGS} " | grep -q "^[[:blank:]]*${a}$"); then
if ! (echo "${VALIDARGS}" | grep -q "^[[:blank:]]*${a}$"); then

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

build.sh Outdated
echo "Invalid option: ${a}"
exit 1
fi
echo " args are ${a} "
Copy link

Choose a reason for hiding this comment

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

Should this debug print be removed?

build.sh Outdated
# setup.py and cmake reference an env var LIBWHOLEGRAPH_DIR to find the
# libwholegraph package (cmake).
# If not set by the user, set it to LIBWHOLEGRAPH_BUILD_DIR
LIBWHOLEGRAPH_DIR=${LIBWHOLEGRAPH_DIR:=${LIBWHOLEGRAPH_BUILD_DIR}}
if ! hasArg --compile-cmd; then
cd ${REPODIR}/pylibwholegraph
cd ${REPODIR}/python/pylibwholegraph
echo "Changed to: ${PWD} and ${PYTHON}"
Copy link

Choose a reason for hiding this comment

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

Should this debug print be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep, removed.

@dongxuy04
Copy link
Contributor

LGTM, thanks!

@BradReesWork BradReesWork merged commit 4ad632e into rapidsai:refactoring Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants