OP-DSL / OP2-Common

OP2: open-source framework for the execution of unstructured grid applications on clusters of GPUs or multi-core CPUs
https://op-dsl.github.io
Other
98 stars 46 forks source link

fatal error: 'path/OP2-Common/op2/c/include/op_cuda_reduction_supp.h' file not found #230

Closed zongjing1998 closed 1 year ago

zongjing1998 commented 2 years ago

Dear Sir: When I use op2-clang to generate CUDA code, there is a problem: fatal error: 'path/OP2-Common/op2/c/include/op_cuda_reduction_supp.h' file not found I search for the file in OP2-Common, but I can't find it. Could you give me the file 'op_cuda_reduction_supp.h', please?

skeleton_kernels.cu: // // auto-generated by op2-clang // // header

include "op_lib_cpp.h"

include "op_cuda_rt_support.h"

include "op_cuda_reduction.h"

#include "op_cuda_reduction_supp.h"

reguly commented 2 years ago

Hello,

OP2-Clang is no longer maintained, please use the python-based translator in this repository. For trying to reproduce the old results, @bgd54 may know where to find this file - probably a separate branch.

gihanmudalige commented 2 years ago

Just to add to this, the python based code generator is getting a redevelopment on a different branch. We plan to have it merged in soon .So do watch this space ! But hopefully the translator in the master branch will support the work you are doing. Do let us know of any further issues.

bgd54 commented 2 years ago

Hello, It seems that I've lost that file somewhere along the way. That header reduced the amount of code we needed to generate. I've tried to recreate the file in https://github.com/OP-DSL/clang-op-translator/blob/temp/op_cuda_reduction_supp/op2_ext/op_cuda_reduction_supp.h