You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, but I'm no longer maintaining this project. Please consider to use the GPU version that I'm currently working on: https://developer.nvidia.com/cutensor
Thank you for your reply. Anyway, the CPU version is very impressed for its performance. The problem I reported is probably caused by the global declaration of memBroker. I can fix this by removing the global declaration in tcl.h and memoryBroker.cpp, and declare a local memBorker in function contractTTGT in contract.cpp. But I'm not fully understand why you use memBroker as a global viable. Are there some performance benefits by using memoryBroker in this way? It is OK if you hadn't time to solve this.
I have many tensors to contract. So I use openmp to parallelize the contraction procedure. Then I got the following error message.
This error can be reproduced by the following simple code:
`#include <stdlib.h>
#include
#include <tcl.h>
int main(int argc, char** argv)
{
tcl::sizeType m = 5;
tcl::sizeType n = 4;
tcl::sizeType k1 = 2;
tcl::sizeType k2 = 3;
tcl::sizeType l1 = 6;
#pragma omp parallel for
for(int np=0; np<4; np++) {
float dataA, dataB, dataC;
posix_memalign((void) &dataA, 64, sizeof(float) * ((size_t)k2)mk1l1);
posix_memalign((void**) &dataB, 64, sizeof(float) * ((size_t)n)k2k1*l1);
posix_memalign((void**) &dataC, 64, sizeof(float) * ((size_t)m)nl1);
}`
This code follows "contraction.cpp" in the example folder. Nothing is changed except the
#pragma omp parallel for
for(int np=0; np<4; np++)
...
Any suggestion is of great help.
The text was updated successfully, but these errors were encountered: