Go to file
Gallo Alejandro 5678ac0d9c Fix AniaBug#2: Lifecycle of SelfSufficient slices was wrong (comments)
This commit shows how the lifecycle of as slice goes.
At some point, a rank gets a list of slices that needs
in the next iteration, at classifies them according
to the characteristics of every situation.

If for instance we are given a slice with
an abc tuple such that we find that this tuple
was given to our rank, then we know that
we have to create a SelfSufficient tuple.

What we do is that we find a blank slice in our
SliceUnion slices bucket. This buffer is blank
and safe to do everything we want with it.
Without cuda, we just need to point this
blank slice to the correct memory address
of the data, that we (the SliceUnion) own.
This is therefore the line

  blank.data = sources[from.source].data();

Of course, doing this in CUDA will mess everything,
as it was until now, since we are pointing to a Host
address. Sadly the way the casting fu is now implemented,
the typechecker did not get that one and I foolishly
forgot about this important bit.

After the creation of the slice comes at some point
in the life cycle the destruction, which we also
have to handle separately.
This is done every iteration in the

    void clearUnusedSlicesForNext(ABCTuple const& abc);

function. There, normally the SelfSufficient slice
would just forget about the pointer it points, slice.data,
since this point is part of the original data of the tensor
distributed in the SliceUnion. In the CUDA case however,
we gave the SelfSufficient slice a freePointer from our
SliceUnion's bucket of allocated freePointers in the GPU
(of which we have around 6 per SliceUnion type).
This pointer needs to be marked again free to use
by a slice in the future, so it has to go back to the bucket,
we can't afford to lose it.
2022-09-12 19:29:35 +02:00
.github/workflows Separate building of ctf from the rest 2022-05-10 12:01:33 +02:00
bench Make bootstrap work from anywhere in the project 2022-09-12 18:35:30 +02:00
docs Add Documentation to the autotools pipeline 2022-03-14 15:33:10 +01:00
etc Fix the autotools atrip_cublas 2022-09-08 13:50:08 +02:00
include Fix AniaBug#2: Lifecycle of SelfSufficient slices was wrong (comments) 2022-09-12 19:29:35 +02:00
src Fix AniaBug #1: cublasCreate after context setting 2022-09-12 19:17:52 +02:00
test Autotools changes 2022-07-05 12:45:26 +02:00
.gitignore Fix the request free problem 2022-08-08 18:28:51 +02:00
atrip.mk Update Makefile infrastructure for ctf working build and non-build jobs 2022-03-14 13:41:32 +01:00
atrip.org Add __device__ to some functions 2022-07-26 15:12:09 +02:00
bootstrap.sh Make bootstrap work from anywhere in the project 2022-09-12 18:35:30 +02:00
config.el Add more implementation files to config 2022-07-05 12:40:25 +02:00
configure.ac Fix --with-ctf 2022-08-08 18:13:14 +02:00
cuda.nix Update autoconf tests 2022-07-27 18:05:20 +02:00
LICENSE Add license headers 2022-03-04 16:14:50 +01:00
LICENSE-HEADER Add license headers 2022-03-04 16:14:50 +01:00
Makefile.am Add checkpoint readers and writers and tests 2022-04-26 18:42:29 +02:00
README.org Update readme with how to cite 2022-03-14 01:10:46 +01:00
shell.nix Fix mkl nix 2022-08-08 18:13:32 +02:00
Sources.mk Now compiling 2022-03-11 14:27:52 +01:00

ATRIP: An MPI-asynchronous implementation of CCSD(T)

About this document

You can find this project written as a literate program

or if you prefer reading the source code with Doxygen there is also a built of doxygen available:

How to cite

If you need to cite this algorithm before the proper paper is released please contact me.

In the mean time the code has been used in this publication and can therefore been cited.