Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Implementing extensions to the cudamatrix class #657

Merged
merged 11 commits into from
Jan 26, 2021

Conversation

JensWehner
Copy link
Member

@JensWehner JensWehner commented Jan 25, 2021

This will allow a bit more Eigen like calculations, although not even close to the same extend.

For gemm calls it allows to use either block() or transpose() on some of the cudamatrices

This is nowhere near a complete set of functionality, but it is a start. I would like to get this merged as a small step.

@JensWehner JensWehner requested a review from felipeZ January 25, 2021 09:46
@JensWehner
Copy link
Member Author

@votca-bot format

@codecov
Copy link

codecov bot commented Jan 25, 2021

Codecov Report

Merging #657 (e29d538) into master (37b3abc) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #657   +/-   ##
======================================
  Coverage    53.3%   53.3%           
======================================
  Files         296     296           
  Lines       28064   28064           
======================================
  Hits        14978   14978           
  Misses      13086   13086           
Impacted Files Coverage Δ
src/libxtp/openmp_cuda.cc 93.9% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37b3abc...e29d538. Read the comment docs.

@JensWehner
Copy link
Member Author

@votca-bot changelog: added transpose to CudaMatrix

include/votca/xtp/cudamatrix.h Show resolved Hide resolved
@@ -197,8 +197,8 @@ void OpenMP_CUDA::A_TDA(const Eigen::MatrixXd& matrix,
temp_[threadid].B->copy_to_gpu(matrix);
cuda_pips_[threadid]->diag_gemm(*temp_[threadid].B, *temp_[threadid].A,
*temp_[threadid].C);
cuda_pips_[threadid]->gemm(*temp_[threadid].B, *temp_[threadid].C,
Copy link
Member

Choose a reason for hiding this comment

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

The new syntax is easier to follow 👍

@JensWehner
Copy link
Member Author

@votca-bot format

@JensWehner JensWehner marked this pull request as ready for review January 25, 2021 21:53
@JensWehner
Copy link
Member Author

@felipeZ could you have a look again

@JensWehner JensWehner requested a review from felipeZ January 26, 2021 09:05
src/libxtp/cudapipeline.cc Show resolved Hide resolved
include/votca/xtp/cudapipeline.h Show resolved Hide resolved
@JensWehner JensWehner merged commit 72841f6 into master Jan 26, 2021
@JensWehner JensWehner deleted the cudamatrix_extension branch January 26, 2021 12:57
votca-bot added a commit to votca/votca that referenced this pull request Jan 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants