-
-
Notifications
You must be signed in to change notification settings - Fork 817
refactor: update blas/ext/base/dsnansum
to follow current project conventions
#2001
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
Conversation
@Planeshifter @Pranavchiku @kgryte can you please review it |
blas/ext/base/dsnansum
to follow current project conventions
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.
You have to fix addon.c
file, refer similar PRs. Left few comments, once addressed this will be good to merge.
lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.native.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/dsnansum/test/test.dsnansum.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/dsnansum/test/test.dsnansum.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/dsnansum/test/test.dsnansum.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/dsnansum/test/test.dsnansum.js
Outdated
Show resolved
Hide resolved
I will change the code as specified. Thanks for your response |
@Pranavchiku I have made the suggested changes. |
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.
You will have to update indentation in manifest.json
and update addon.c
@Pranavchiku I have updated the indentation in |
@Planeshifter can you please review my PR |
Signed-off-by: Pranav <85227306+Pranavchiku@users.noreply.github.com>
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 looks good to me. Thanks @Shubh942 !
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
"dependencies": [ | ||
"@stdlib/napi/export", | ||
"@stdlib/napi/argv", | ||
"@stdlib/napi/argv-float", |
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.
"@stdlib/napi/argv-float", |
This isn't needed.
#include "stdlib/blas/ext/base/dsnansum.h" | ||
#include "stdlib/napi/export.h" | ||
#include "stdlib/napi/argv.h" | ||
#include "stdlib/napi/argv_float.h" |
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.
#include "stdlib/napi/argv_float.h" |
This isn't used.
@@ -35,7 +34,7 @@ tape( 'main export is a function', function test( t ) { | |||
}); | |||
|
|||
tape( 'the function has an arity of 4', function test( t ) { | |||
t.strictEqual( dsnansum.length, 4, 'has expected arity' ); | |||
t.strictEqual( dsnansum.length, 4, 'return expected value' ); |
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.
t.strictEqual( dsnansum.length, 4, 'return expected value' ); | |
t.strictEqual( dsnansum.length, 4, 'returns expected value' ); |
@@ -35,7 +34,7 @@ tape( 'main export is a function', function test( t ) { | |||
}); | |||
|
|||
tape( 'the function has an arity of 3', function test( t ) { | |||
t.strictEqual( dsnansum.length, 3, 'has expected arity' ); | |||
t.strictEqual( dsnansum.length, 3, 'return expected value' ); |
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.
t.strictEqual( dsnansum.length, 3, 'return expected value' ); | |
t.strictEqual( dsnansum.length, 3, 'returns expected value' ); |
@@ -44,7 +43,7 @@ tape( 'main export is a function', opts, function test( t ) { | |||
}); | |||
|
|||
tape( 'the function has an arity of 4', opts, function test( t ) { | |||
t.strictEqual( dsnansum.length, 4, 'has expected arity' ); | |||
t.strictEqual( dsnansum.length, 4, 'return expected value' ); |
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.
t.strictEqual( dsnansum.length, 4, 'return expected value' ); | |
t.strictEqual( dsnansum.length, 4, 'returns expected value' ); |
x[ i ] = round( randu()*100.0 ); | ||
} | ||
} | ||
var x = filledarrayBy( 10, 'float32', discreteUniform( 0, 100 ) ); |
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.
The changes to this example are not equivalent to the original.
x[ i ] = ( randu()*10.0 ) - 20.0; | ||
} | ||
} | ||
var x = filledarrayBy( len, 'float32', rand ); |
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.
The changes to this (and the other benchmarks) are not equivalent to the original.
], | ||
"libpath": [], | ||
"dependencies": [ | ||
"@stdlib/blas/ext/base/dsnansumpw" |
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 dependency has been omitted from the dependencies in each of the configurations. This should be re-added to each of them.
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 PR needs changes, as directed in the comments, before it can be merged. Benchmark test data generation should remain similar to the original. Namely, NaNs
should be present; otherwise, compiler optimizations can result in conditionals being removed, resulting in better measured performance than "real-world" usage.
@kgryte @Planeshifter I made the required changes. Can you please review it. |
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
@kgryte @Planeshifter I made the required changes. |
@Shubh942 Looks like this PR is failing CI, including failing tests and lint errors. Until those are resolved, we won't be able to move this PR forward. |
Resolves #1492.
Description
update blas/ext/base/dsnansum to follow current project conventions
This pull request:
progresses #1152
Fixes #1492
Related Issues
This pull request:
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers