Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTX export not working #255

Open
A1-TheDarkKnight opened this issue Dec 23, 2024 · 2 comments
Open

PTX export not working #255

A1-TheDarkKnight opened this issue Dec 23, 2024 · 2 comments

Comments

@A1-TheDarkKnight
Copy link

A1-TheDarkKnight commented Dec 23, 2024

Thank you for the beautiful work.
I would like to report that exporting Nvidia PTX code not working.

  • I tried it on the FuildX3D, by uncommenting the "#define PTX" in "opencl.hpp" file. The program compiles fine, but there is no PTX file.
  • I tried the same thing on the "OpenCL-Wrapper" sample project. It didn't compile at all because of an error:
    • "Error C3861 'write_file': identifier not found OpenCL-Wrapper ...\OpenCL-Wrapper\src\opencl.hpp 289"
    • "Error (active) E0020 identifier "write_file" is undefined OpenCL-Wrapper ...\OpenCL-Wrapper\src\opencl.hpp 289"

Specs:
NVidia RTX 3090
Win 11 x64
driver : 551.76 WHQL DCH [r551_71-2]
Visual Sudio 2022

Best Regards

@ProjectPhysX
Copy link
Owner

Hi @A1-TheDarkKnight,

are you running an Nvidia GPU? The PTX export only works with Nvidia hardware.

For the OpenCL-Wrapper, you have to uncomment this line to get it working: https://github.com/ProjectPhysX/OpenCL-Wrapper/blob/master/src/utilities.hpp#L4
I disabled the read_file()/write_file() functions by default to not have the OpenCL-Wrapper include the <fstream>/<filesystem> headers by default, to make it more sleak and reduce compile time.

Kind regards,
Moritz

@A1-TheDarkKnight
Copy link
Author

A1-TheDarkKnight commented Dec 23, 2024

Hi @ProjectPhysX , Yes I am on Nvidia RTX 3090. I forgot to mention the specs. I added the driver specific version too, and visual studio version.
I tried the OpenCL-Wrapper, and It compiled, but still no PTX file.

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants