openai-gemm icon indicating copy to clipboard operation
openai-gemm copied to clipboard

Compiling the library

Open hieuhoang opened this issue 7 years ago • 0 comments

I think I'm missing something here. I want to build the library then link it to src/test.cu. i.e. no python wrappers or Nervana test suite.

Running 'bazel build' says its successfully built, but no lib files were created. Running nvcc -std=c++11 test.cu -I.. of course give me this error: /tmp/tmpxft_00006146_00000000-10_test.o: In function main': tmpxft_00006146_00000000-5_test.cudafe1.cpp:(.text+0x22e): undefined reference to get_grid_limits' tmpxft_00006146_00000000-5_test.cudafe1.cpp:(.text+0x27c): undefined reference to `get_shared_limits' ... So my questions are 1. Did the library actually get created but is named something else? 2. What is the command to compile test.cu?

hieuhoang avatar Dec 07 '17 20:12 hieuhoang