question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

problem when compiling iou3d and roipool3d in Windows

See original GitHub issue

I have compiled the codes of iou3d and roipool3d in Ubuntu successfully, but when I tried to compiled iou3d in Windows, the error occurred that showed ‘identifier “EPS” is undefined in device code’. Thus, I change the code like below.

//#define DEBUG
const int THREADS_PER_BLOCK_NMS = sizeof(unsigned long long) * 8;
//const float EPS = 1e-8;
#define EPS 1e-8

However, I met another problem

iou3d.obj : error LNK2001: 无法解析的外部符号 "public: long * __cdecl at::Tensor::data<long>(void)const " (??$data@J@Tensor@at@@QEBAPEAJXZ)
build\lib.win-amd64-3.6\iou3d_cuda.cp36-win_amd64.pyd : fatal error LNK1120: 1 个无法解析的外部命令
error: command 'C:\\Program Files (x86)\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120

Anyone know how to solve it?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
candisjesuscommented, Sep 11, 2019

I mean try to change long * keep_data = keep.data<long>();

To

Long long * keep_data = keep.data<long long>();

U need to change “keep.data”to <long long >

| | 李晶津 邮箱:candisking@126.com |

签名由 网易邮箱大师 定制

On 09/11/2019 15:19, lonely7yk wrote:

@candisjesus Thank you for your reply! However, there is no “at::tensor::data” in the codes that I want to compile(iou3d.cpp, iou3d_kernel.cu). I still have no idea how to deal with it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

0reactions
Baboom-lcommented, Mar 10, 2021

@candisjesus Wow! It works! I have been suffered from the problem for two days. Thank you very much!!

Hi! I want to implement pointrcnn on Windows. Can you give me some advice?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build and install the pointnet2_lib, iou3d, roipool3d libraries
I wanna run this project on my Windows. After i set up the pytorch environment well and tested it , I follow the...
Read more >
Compilation error on Windows 10 - Modeling - The Stan Forums
I am having this same problem, where the directory path has a space in it. I tried running install.packages(c(“rstan”,“StanHeaders”),type=“ ...
Read more >
PointRCNN problem when compiling iou3d and roipool3d in Windows
I have compiled the codes of iou3d and roipool3d in Ubuntu successfully, but when I tried to compiled iou3d in Windows, the error...
Read more >
linphone-desktop on Windows 10 compile error - Stack Overflow
CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 258. Any idea how to fix this problem?
Read more >
Windows build - CARLA Simulator - Read the Docs
Issues can arise through the use of different methods to install the CARLA client library and having different versions of CARLA on your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found