Git Product home page Git Product logo

substation's Issues

How to compile & execute Substation encoder

Hi,

I am trying to execute the Substation encoder layer provided in the pytorch_module folder. According to the readme I am trying to execute the following command

python run_encoder.py --batch-size 8 --max-seq-len 512 --num-heads 16 --emb-size 1024 --layout layouts-bert-b8-l512-h16-e1024.pickle

but this results in an error message:

OSError: ./compilation_dir/26e5dc71cb611d368b14bab45256feed/./encoder.so: cannot open shared object file: No such file or directory

I have then tried to run make encoder to hopefully build the encoder.so library. This unfortunately fails as well:

encoder.cu:30:10: fatal error: encoder_parameters.cuh: No such file or directory

even when I set CPATH to include the compilation_dir folder:

nvcc --compiler-options -Wfatal-errors -O3 -o encoder encoder.cu -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -lcublas
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function _start':
(.text+0x24): undefined reference to main'

Could you help me get this running or point me to the corresponding part of the readme on how to fix this?
Many thanks in advance!

run tc_profiling/compile.sh error

I run the 'tc_profiling/compile.sh', show error:

cublas-gemm.cpp: In function 'int main(int argc, char **argv)':
cublas-gemm.cpp: 26:10: error: 'err' does not name a type
               auto err = (expr);  
cublas-gemm.cpp: 37:3: note: in expansion of macro ‘CUDA_CHECK’
               CUDA_CHECK(cublasCreate(&handle));x
....
 

GPU type: V100
cuda version:10.1

What is your compilation environment?

bug when using compile.sh to compile

Hi, Thanks for your code.

When I using

sh compile.sh

I fonud bug follows:

compile.sh: line 4: syntax error near unexpected token `('

compile.sh: line 4: for i (seq 0 23`) { echo $i; nvcc -O3 -lcudadevrt -lcuda -arch sm_70 -lcublas cublas-gemm.cpp -

DCUBLAS_ALGO=CUBLAS_GEMM_ALGO$i -o gemm$i }'

Can you give me some advices?

Thanks:)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.