Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
tiled_cholesky w/o openmp #27
base: main
Are you sure you want to change the base?
tiled_cholesky w/o openmp #27
Changes from 6 commits
9947e6a
4f722b8
c9f0eda
d1a8d41
bf33d02
6f4f17d
09f8ef7
3c5da71
6882f2a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to install/setup OpenBLAS with CPM during CMake? Personally I don't want to add these extra manual steps of installing and
export OPENBLAS_DIR=..
as they would make general usage as well as CI/CD really tedious. @weileweiThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mhaseeb123 agreed not introducing extra flags. I just tried with CPMadd, and building openblas takes a while for the first-time building it.
@hcq9102 try the following in the CMakeLists files. Additionally, I request to add a compilation flag something like
USE_OPENBLAS
to cmake build to separate out if we should use cpm to add openblas.in main CmakeLists.txt
in your application CMakeLists.txt:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, I wonder if we can do it thorough unique_ptr instead of new and delete. not important for this PR though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need static_cast here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch! for basic numeric types, we can skip using static_cast(0) for initialization to zero as it's redundant.
this is used in previous code, which I may discard it in the future when I clean up the code though.
I wont change it in this pr. But i mark it down for future clean up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change this
std::vector<T> flattenedVector;
tostd::vector<T> flattenedVector(N);
where N is your estimated biggest size of the flattened array size, so you can pre-allocate needed size.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this way, then you may not use
insert
in the following, maybe need to useflattenedVector[i] = ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. As its not related with this PR, but useful for future clean up of previous code. I write it down. thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the data type of matrix_size or length of input are inconsistent across your implementations. In some places, you use
int
, someunsigned int
, and somesize_t
. please do a sweep across all your files, and make them usingsize_t
or whatever that makes sense.