antonmks / Alenka

GPU database engine
Other
1.17k stars 120 forks source link

It take too much time to compile but not compile yet #89

Open pramodgadekar opened 8 years ago

pramodgadekar commented 8 years ago

I am trying to compile alenka and strings_sort_device.cu file take too much time not compile yet. OS- WIndows 7 64bit Cuda Toolkit 7.5 VStudio 10 Could you solve this problem I am tried without strings_sort_device.cu and following problem occurred

capture

E:\gpu database engine>nmake -f Makefile.win

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved.

    nvcc.exe --compiler-options /MD -O3 --cudart=shared -arch=sm_35 -lcuda m

gpucontext.obj mgpuutil.obj -o alenka merge.obj MurmurHash2_64.obj filter.obj select.obj zone_map.obj atof.obj cm.obj bison.obj callbacks.obj main.obj operat ors.obj mgpucontext.obj mgpuutil.obj merge.obj MurmurHash2_64.obj filter.obj select.obj zone_map.obj atof.obj cm.obj bison.obj callbacks.obj main.obj operators.obj cm.obj : error LNK2019: unresolved external symbol "void cdecl str_gather(void ,unsigned __int64,void ,void ,unsigned int)" (?str_gather@@YAXPEAX_K00I@Z) r eferenced in function "void __cdecl apply_permutation_char(char ,unsigned int ,unsigned __int64,char ,unsigned int)" (?apply_permutation_char@@YAXPEADPEAI_K0 I@Z) cm.obj : error LNK2019: unresolved external symbol "void cdecl str_gather_host (unsigned int const ,unsigned __int64,void ,void ,unsigned int)" (?str_gather _host@@YAXPEBI_KPEAX2I@Z) referenced in function "void __cdecl apply_permutation _char_host(char ,unsigned int ,unsigned __int64,char ,unsigned int)" (?apply_ permutation_char_host@@YAXPEADPEAI_K0I@Z) cm.obj : error LNK2019: unresolved external symbol "void cdecl str_sort_host(c har *,unsigned int64,unsigned int ,bool,unsigned int)" (?str_sort_host@@YAXPE AD_KPEAI_NI@Z) referenced in function "void __cdecl update_permutation_char_host (char ,unsigned int ,unsigned __int64,class std::basic_string<char,struct std: :char_traits,class std::allocator >,char ,unsigned int)" (?update_p ermutation_char_host@@YAXPEADPEAI_KV?$basic_string@DU?$char_traits@D@std@@V?$all ocator@D@2@@std@@0I@Z) cm.obj : error LNK2019: unresolved external symbol "void cdecl str_sort(char ,unsigned __int64,unsigned int ,bool,unsigned int)" (?str_sort@@YAXPEAD_KPEAI_N I@Z) referenced in function "void cdecl update_char_permutation(class CudaSet ,class std::basic_string<char,struct std::char_traits,class std::allocato r >,unsigned int ,class std::basic_string<char,struct std::char_traits<ch ar>,class std::allocator >,void *,bool)" (?update_char_permutation@@YAXPEA VCudaSet@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAI1PEA X_N@Z) alenka.exe : fatal error LNK1120: 4 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\ v7.5\bin\nvcc.exe"' : return code '0x2' Stop.

E:\gpu database engine>

antonmks commented 8 years ago

Yes it is not going to work without strings_sort_device.cu. So you need to compile it . It takes a while but it has to be done just once.

xpeng2333 commented 7 years ago

How much memory do I need to compile the string_sort_device.cu?

antonmks commented 7 years ago

You can modify UNROLL_COUNT parameter in file strings.h to improve compilation time.

xpeng2333 commented 7 years ago

Thank you! I'll have a try.