NVIDIA / NVIDIA/optix-toolkit

problem when import optix using the python toolkit

Open
#6 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
143
Forks
28
Avg merge
4d 17h
Merged PRs (30d)
4

Description

Hello, thanks so much for your contribution about the python toolkit.
I met one problem when I run the examples/hello.py after compiling the pyoptix successfully on ubuntu 18.04 with cuda 11.1.

File "hello.py", line 8, in
import optix
ImportError: /home/user1/anaconda3/envs/optix/lib/python3.7/site-packages/optix-0.0.1-py3.7-linux-x86_64.egg/optix.cpython-37m-x86_64-linux-gnu.so: undefined symbol: cudaFree

I tried changing the cuda version but still happens.

Could you please help me to solve this?

Thanks so much!
On

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with examples/hello.py and the failing import of optix in the Python 3.7 environment. Reproduce the undefined-symbol error on the reported Ubuntu 18.04 and CUDA 11.1 setup, then inspect how pyoptix is built and linked. Done means the example imports optix successfully without the cudaFree error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
build-system, computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.