Skip to content

Conversation

@edwinsolisf
Copy link
Contributor

Temporary fix for inline namespace with thrust compiling with MSVC

Description

  • Is this a new feature or a bug fix?: Temporary fix
  • More detail if necessary to describe all commits in pull request.
  • Why these changes are necessary: workaround for compiler bug affecting template specialization with inline namespace used in ThrustArrayFirePolicy.hpp
  • Potential impact on specific hardware, software or backends: CUDA backend on Windows
  • New functions and their functionality.: None
  • Can this PR be backported to older versions?: NA
  • Future changes not implemented in this PR: None
    Fixes: [Build] MSVC Compiler Bug affecting thrust library in CUDA Backend #3565

Changes to Users

  • No additional options added to the build.
  • No action required by the user

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • Functions added to unified API
  • Functions documented

@christophe-murphy christophe-murphy self-requested a review October 17, 2024 13:14
@christophe-murphy
Copy link
Contributor

christophe-murphy commented Oct 17, 2024

Hi Edwin, thanks for finding this! I was trying to compile with Windows and wondering what was going on!

I just have a couple of comments, I think things might have got messed up by clang format. Thanks

@christophe-murphy christophe-murphy mentioned this pull request Oct 18, 2024
2 tasks
@brfire
Copy link

brfire commented Oct 28, 2024

Would be good to land this, I got stuck on it for a couple hours.

Hi Edwin, there seems to be an issue caused by the clang format apply. I propose these changes.
@christophe-murphy
Copy link
Contributor

I made some changes. Compiling works on my Windows runner, see here: https://github.com/christophe-murphy/arrayfire/actions/runs/11387289958/job/31681529494

If you are happy with it, then I'll merge it.

@edwinsolisf
Copy link
Contributor Author

Looks good to me! Go ahead and merge it

@christophe-murphy christophe-murphy merged commit 5c18fb3 into arrayfire:master Nov 5, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Build] MSVC Compiler Bug affecting thrust library in CUDA Backend

3 participants