Skip to content
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

cublas support #1453

Merged
merged 20 commits into from
Oct 16, 2023
Merged

cublas support #1453

merged 20 commits into from
Oct 16, 2023

Conversation

ZuseZ4
Copy link
Member

@ZuseZ4 ZuseZ4 commented Sep 23, 2023

No description provided.

@ZuseZ4 ZuseZ4 changed the title starting somewhere cublas support Sep 24, 2023
@@ -655,8 +655,7 @@ void callMemcpyStridedBlas(llvm::IRBuilder<> &B, llvm::Module &M, BlasInfo blas,
void callMemcpyStridedLapack(llvm::IRBuilder<> &B, llvm::Module &M,
BlasInfo blas, llvm::ArrayRef<llvm::Value *> args,
llvm::ArrayRef<llvm::OperandBundleDef> bundles) {
std::string copy_name =
(blas.prefix + blas.floatType + "lacpy" + blas.suffix).str();
std::string copy_name = blas.prefix + blas.floatType + "lacpy" + blas.suffix;
Copy link
Member

Choose a reason for hiding this comment

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

unnecessary heap allocations for construction temporary std::strings!
https://godbolt.org/z/Ecdcc5beK

@wsmoses
Copy link
Member

wsmoses commented Oct 16, 2023

Note macos Julia CI is failing which we'll need to fix. Merging now to avoid a bunch of git nonsense per @ZuseZ4

@wsmoses wsmoses merged commit aea349c into main Oct 16, 2023
26 of 57 checks passed
@wsmoses wsmoses deleted the cublas-tests branch October 16, 2023 16:12
MilesCranmer pushed a commit to MilesCranmer/Enzyme that referenced this pull request Jul 24, 2024
* rewrite calls

* Fix

* remove nulls

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants