Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'../host/inc/matrixMult.h' file not found #3

Open
VincentChong123 opened this issue Nov 16, 2016 · 5 comments
Open

'../host/inc/matrixMult.h' file not found #3

VincentChong123 opened this issue Nov 16, 2016 · 5 comments

Comments

@VincentChong123
Copy link

Hi @prashantrar @gplhegde

found error below
94:10: fatal error: '../host/inc/matrixMult.h' file not found
#include "../host/inc/matrixMult.h"

when I compile as follow
papaa-opencl-master/opencl-src/alexnet-altera
source compile_gemm.sh

matrixMult.h called from file below and not found in this repo
https://github.com/gplhegde/papaa-opencl/blob/1988f4b17cb3ced25f3aab64c8b532790e32684b/opencl-src/alexnet-altera/device/matrix_mult.cl

@VincentChong123
Copy link
Author

solved by linking host/inc/matrixMult.h to
altera/16.0/hld/board/terrasic/tests/matrix_mult/host/inc/matrixMult.h

@gplhegde
Copy link
Collaborator

Get it from here or simply define BLOCK_SIZE to be 64 and delete the header inclusion. Forgot to commit that file.

@gplhegde
Copy link
Collaborator

Anyway, the host code is not using this kernel. You don't need to compile this kernel.

@VincentChong123
Copy link
Author

@gplhegde
thanks for support. changed BLOCK_SIZE of which of the following file?

./device/block_conv_kernel.cl:1:#define BLOCK_SIZE      16
./device/gemm_conv_kernel.cl:94:#define BLOCK_SIZE      64
./device/block_conv_mem.cl:1:#define BLOCK_SIZE 16
./device/fc_kernel.cl:130:#define BLOCK_SIZE    32
./bin-del/block_conv_kernel/block_conv_kernel.cl.orig:1:#define BLOCK_SIZE      16
./bin-del/fc_kernel/fc_kernel.cl.orig:130:#define BLOCK_SIZE    32
./bin/block_conv_kernel/block_conv_kernel.cl.orig:1:#define BLOCK_SIZE  16
./bin/fc_kernel/fc_kernel.cl.orig:130:#define BLOCK_SIZE        32
./host/src/test_gemm_conv_layer.cpp:9:#define BLOCK_SIZE 64
./host/src/test_conv_layer.cpp:14:#define BLOCK_SIZE    16

If host code not use, which code control the device kernel? or the kernel size is fixed in device code?

@nachiket
Copy link
Owner

nachiket commented Jan 7, 2017

@gplhegde, can you just add the header to the repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants