-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Add more convenience math functions #159
Conversation
#include <mkl.h> | ||
#include <cublas_v2.h> | ||
|
||
#define USE_MKL |
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.
This should be defined someplace else, probably Makefile.config
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.
Commit 4493ab5 (Remove mkl_alternate and move the define func macros to mkl_functions)
deleted the define.
Question - why are all files showing as "all adds" instead of modifications? This makes reviewing quite hard. |
The latest commit 4493ab5 (Remove mkl_alternate and move the define func macros to mkl_functions) avoided the confusion of adding mkl_alternate.hpp. Please make further comments. |
As pointed out in my previous comment, commit 4493ab5 deleted all the copied contents from the boost-eigen branch to make this PR independent of other issues or PRs. So there is no more urgent need to merge that branch before this. That being said, the long lasting feature branch boost-eigen has seen no contributing activities for a week and is obviously stabilized. |
@kloudkl, I did not miss your comment, but I could have explained better. I want While your c0ceec1 and 4493ab5 manually accomplished this, it would have been unneeded if |
@shelhamer What's your ETA on what you're trying to do? Should we just merge this baby in? I feel bad about my Ubuntu-build-breaking HDF5 PR, and there's a commit here that fixes it. |
This is held on the |
Rebased and tests passed. |
Add more convenience math functions: hamming distance, sum of absolute values, elementwise sign and abs, and non-in-place scaling.
Thanks for the further math functions, and comment clarifying the history of the unary function macros. This might cause a slight conflict in the merge of |
@kloudkl I removed this PR from Note that your demos #141 might conflict with this branch by the implementation of the hamming distance there. Since it is a nice demo, we would like to merge it soon, but please make sure that both are clean merges. |
Thanks for your review! I am very sorry for not testing again after rebasing. The new PR that resolves both of your concerns is #201. |
GPU Memory Manager refactored
To fulfill the requests of the issue #146, the following math functions are added and tested: __builtin_popcount* based fast hamming distance, sum of absolute values, element wise sign and fabs, and non-in-place scaling.
Note the cherry pick from the boost-eigen branch. The commit was authored by Rowland Depp. I think it is time to merge the branch into either dev or master.