{"action":"closed","issue":{"url":"https://api.github.com/repos/fzi-forschungszentrum-informatik/gpu-voxels/issues/73","repository_url":"https://api.github.com/repos/fzi-forschungszentrum-informatik/gpu-voxels","labels_url":"https://api.github.com/repos/fzi-forschungszentrum-informatik/gpu-voxels/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/fzi-forschungszentrum-informatik/gpu-voxels/issues/73/comments","events_url":"https://api.github.com/repos/fzi-forschungszentrum-informatik/gpu-voxels/issues/73/events","html_url":"https://github.com/fzi-forschungszentrum-informatik/gpu-voxels/issues/73","id":327620686,"node_id":"MDU6SXNzdWUzMjc2MjA2ODY=","number":73,"title":"Can't compile without JIT (Just In Time)","user":{"login":"r2b0","id":39715099,"node_id":"MDQ6VXNlcjM5NzE1MDk5","avatar_url":"https://avatars2.githubusercontent.com/u/39715099?v=4","gravatar_id":"","url":"https://api.github.com/users/r2b0","html_url":"https://github.com/r2b0","followers_url":"https://api.github.com/users/r2b0/followers","following_url":"https://api.github.com/users/r2b0/following{/other_user}","gists_url":"https://api.github.com/users/r2b0/gists{/gist_id}","starred_url":"https://api.github.com/users/r2b0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r2b0/subscriptions","organizations_url":"https://api.github.com/users/r2b0/orgs","repos_url":"https://api.github.com/users/r2b0/repos","events_url":"https://api.github.com/users/r2b0/events{/privacy}","received_events_url":"https://api.github.com/users/r2b0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-30T08:13:27Z","updated_at":"2018-08-28T17:28:59Z","closed_at":"2018-08-28T17:28:59Z","author_association":"NONE","body":"I thought I should make this a separate issue, because I didn't solve it yet.\r\n\r\nBy default, the JIT compilation is disabled.\r\nSee this file:  \r\n`packages/gpu_voxels/CMakeLists.txt`\r\n\r\nThis line:\r\n`SET(ICMAKER_CUDA_COMPUTE_VERSION 35)`\r\nmakes it compile using:\r\n`-gencode arch=compute_35,code=compute_35`\r\nand then it does the JIT compile at runtime, which causes a delay.\r\n\r\n\r\nI tried using these settings:\r\n`-gencode arch=compute_30,code=sm_30`\r\nor\r\n`-gencode arch=compute_35,code=sm_35`\r\nor\r\n`-gencode arch=compute_50,code=sm_50`\r\n\r\nbut now the compilation fails with an error:\r\n```\r\n[ 77%] Building NVCC (Device) object packages/gpu_voxels/src/gpu_voxels/test/CMakeFiles/test_gpu_voxels_core_CUDA_TARGET.dir/test_gpu_voxels_core_CUDA_TARGET_generated_testing_distance.cu.o\r\nptxas fatal   : Unresolved extern function '_ZN10gpu_voxels13DistanceVoxelC1Ev'\r\nCMake Error at test_gpu_voxels_core_CUDA_TARGET_generated_testing_distance.cu.o.cmake:264 (message):\r\n  Error generating file\r\n  /home/home/username/gpu-voxels-master/build/packages/gpu_voxels/src/gpu_voxels/test/CMakeFiles/test_gpu_voxels_core_CUDA_TARGET.dir//./test_gpu_voxels_core_CUDA_TARGET_generated_testing_distance.cu.o\r\n```\r\n\r\n.\r\n\r\nDetailed output below:\r\n```\r\n<snip>\r\n\r\nLinking CXX shared library ../../../../../../lib/libgpu_voxels_urdf_robot.so\r\n[ 67%] Built target gpu_voxels_urdf_robot\r\nLinking CXX shared library ../../../../lib/libgpu_voxels.so\r\n[ 67%] Built target gpu_voxels\r\n[ 68%] Building NVCC (Device) object packages/gpu_voxels/src/gpu_voxels/voxelmap/CMakeFiles/gpu_voxels_voxelmap_tests_CUDA_TARGET.dir/gpu_voxels_voxelmap_tests_CUDA_TARGET_generated_Tests.cu.o\r\n[ 68%] Building NVCC (Device) object packages/gpu_voxels/src/gpu_voxels/voxelmap/CMakeFiles/gpu_voxels_voxelmap_tests_CUDA_TARGET.dir/kernels/gpu_voxels_voxelmap_tests_CUDA_TARGET_generated_VoxelMapOperations.cu.o\r\n[ 68%] Building NVCC (Device) object packages/gpu_voxels/src/gpu_voxels/voxelmap/CMakeFiles/gpu_voxels_voxelmap_tests_CUDA_TARGET.dir/kernels/gpu_voxels_voxelmap_tests_CUDA_TARGET_generated_VoxelMapTests.cu.o\r\nLinking CXX shared library ../../../../../lib/libgpu_voxels_voxelmap_tests.so\r\n[ 68%] Built target gpu_voxels_voxelmap_tests\r\nLinking CXX executable ../../../../../../bin/octree_bench\r\n[ 72%] Built target octree_bench\r\nLinking CXX executable ../../../../../../bin/octree_provider\r\n[ 75%] Built target octree_provider\r\n[ 76%] Building NVCC (Device) object packages/gpu_voxels/src/gpu_voxels/helpers_highlevel/CMakeFiles/gpu_voxels_distance_map_converter_CUDA_TARGET.dir/gpu_voxels_distance_map_converter_CUDA_TARGET_generated_DistanceMapConverter.cu.o\r\nLinking CXX shared library ../../../../../lib/libgpu_voxels_distance_map_converter.so\r\n[ 76%] Built target gpu_voxels_distance_map_converter\r\n[ 76%] Building NVCC (Device) object packages/gpu_voxels/src/gpu_voxels/test/CMakeFiles/test_gpu_voxels_core_CUDA_TARGET.dir/__/octree/test/test_gpu_voxels_core_CUDA_TARGET_generated_Tests.cu.o\r\n[ 76%] Building NVCC (Device) object packages/gpu_voxels/src/gpu_voxels/test/CMakeFiles/test_gpu_voxels_core_CUDA_TARGET.dir/test_gpu_voxels_core_CUDA_TARGET_generated_testing_bitvector.cu.o\r\n[ 77%] Building NVCC (Device) object packages/gpu_voxels/src/gpu_voxels/test/CMakeFiles/test_gpu_voxels_core_CUDA_TARGET.dir/test_gpu_voxels_core_CUDA_TARGET_generated_testing_cudaMath.cu.o\r\n/home/home/username/gpu-voxels-master/packages/gpu_voxels/src/gpu_voxels/test/testing_cudaMath.cu(140): warning: controlling expression is constant\r\n\r\n/home/home/username/gpu-voxels-master/packages/gpu_voxels/src/gpu_voxels/test/testing_cudaMath.cu(140): warning: controlling expression is constant\r\n\r\n[ 77%] Building NVCC (Device) object packages/gpu_voxels/src/gpu_voxels/test/CMakeFiles/test_gpu_voxels_core_CUDA_TARGET.dir/test_gpu_voxels_core_CUDA_TARGET_generated_testing_distance.cu.o\r\nptxas fatal   : Unresolved extern function '_ZN10gpu_voxels13DistanceVoxelC1Ev'\r\nCMake Error at test_gpu_voxels_core_CUDA_TARGET_generated_testing_distance.cu.o.cmake:264 (message):\r\n  Error generating file\r\n  /home/home/username/gpu-voxels-master/build/packages/gpu_voxels/src/gpu_voxels/test/CMakeFiles/test_gpu_voxels_core_CUDA_TARGET.dir//./test_gpu_voxels_core_CUDA_TARGET_generated_testing_distance.cu.o\r\n\r\n\r\nmake[2]: *** [packages/gpu_voxels/src/gpu_voxels/test/CMakeFiles/test_gpu_voxels_core_CUDA_TARGET.dir/test_gpu_voxels_core_CUDA_TARGET_generated_testing_distance.cu.o] Error 1\r\nmake[1]: *** [packages/gpu_voxels/src/gpu_voxels/test/CMakeFiles/test_gpu_voxels_core.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\n"}}
{"actor":{"display_login":"cjue"}}