Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  
Followers 0
rolldice

About compiling HDK with CUDA libraries

Hi, everybody

 

I'm trying to use CUDA libararies when compiling my custom SOP node.

 

But, I can't because it's really hard to compile it. I succeeded to make a library that includes some CUDA functions. And I tried to attach that library when compiling my custom Houdini SOP node. The compile command is like below :

    hcustom -l simpleMultiCopy.lib TestSopNode.cpp

 

And I got a error message like below :

Making 'TestSopNode.o' and 'C:/Users/user/Documents/houdini14.0/dso\TestSopNode.dll' from 'TestSopNode.cpp'
TestSopNode.cpp
C:/PROGRA~1/SIDEEF~1/HOUDIN~1.258/toolkit/include\boost/format/alt_sstream_impl.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss
   Creating library TestSopNode.lib and object TestSopNode.exp
TestSopNode.o : error LNK2019: unresolved external symbol "void __cdecl simpleMultiCopy(void)" (?simpleMultiCopy@@YAXXZ) referenced in function "protected: virtual enum UT_ErrorSeverity __cdecl TestSopNode::cookMySop(class OP_Context&)" (?cookMySop@TestSopNode@@MEAA?AW4UT_ErrorSeverity@@AEAVOP_Context@@@Z)
C:/Users/user/Documents/houdini14.0/dso/TestSopNode.dll : fatal error LNK1120: 1 unresolved externals

 

And below is the facts :

  1. When I tested to compile normal console application with above CUDA library, no error happened

  2. It's not a link error. when I compiled the same thing with wrong library name, I saw a different error :

      LINK : fatal error LNK1181: cannot open input file 'simpleMulC.lib'

  3. simpleMultiCopy.lib has the function 'void simpleMultiCopy(void)'

 

And my compile environment is like below :

  1. OS : Windows 7

  2. Visual Studio Version : Microsuft Visual Studio Express 2012

  3. Houdini version : 14.0.258

 

How can I compile my SOP node with CUDA library? I'll really appreciate when you give some tips to me.

 

Thanks.

Edited by rolldice

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0