halide / Halide

a language for fast, portable data-parallel computation
https://halide-lang.org
Other
5.86k stars 1.07k forks source link

when build sample code for laplacian in app repo found error like:"Cannot generate items in parallel..." #8305

Closed phengxu closed 3 months ago

phengxu commented 3 months ago

When build the project laplacian from repo app, found the error:

"Generation of 'D:\halide_test\build\CMakeFiles\a1bccc90b3ec1be20a79f7bfe8eeaa42\local_laplacian.update.rule' depends on 'D:\HALIDE_TEST\BUILD\LOCAL_LAPLACIA N.H' generated by 'D:\halide_test \build\CMakeFiles\a3904a6b9ddb43e468c227dc47ef3f5d\local_laplacian.h.rule'. Cannot generate items in parallel." Generating local_laplacian.h, local_laplacian.obj C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\halide_test\build\CMakeFiles\a3904a6b9ddb43e468c227dc47ef3f5d\local_laplacian.h.rule;D:\halide_test\b uild\CMakeFiles\a1bccc90b3ec1be20a79f7bfe8eeaa42\local_laplacian.update.rule;D:\halide_test\CMakelists.txt' has exited with code -1073741515. [D:\halide_test\build\local_laplacian.update.vcxproj]

I build in windows with halide version 17.0.2 and installed halide with vcpkg, is that any installation problem cause this error? I had build my private project and found same error, so I build a sample project of github https://github.com/halide/Halide/tree/main/apps/local_laplacian for checking any building env problem, so please give a hints about this.

phengxu commented 3 months ago

when use ninja build, it successful buid project, but msbuild will failed with such error, it seem msbuild conficts with some denpendencies into loop situation under parrallel building strategy?