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

[TEST: DO NOT MERGE] Long long fix mac test #192

Closed
wants to merge 11 commits into from

Conversation

jatkinson1000
Copy link
Member

Checks that #137 and #191 by @TomMelt are running OK on mac by using the github runner actions on mac and intel set up in #164 by @jatkinson1000

If this combination runs OK in the workflows we can merge associated PRs.

TomMelt and others added 8 commits December 2, 2024 10:24
Integer size for FTorch can now be controlled using parameter
`ftorch_int`.

Currently, the default is set to `int32` but this could be changed if
required.

This fixes an issue on windows with the latest version of ifx/ifort
which builds with a different integer type leading to the following
error:

```
error #6284: There is no matching specific function for this generic function reference.   [TORCH_TENSOR_FROM_ARRAY]
   in_tensors(1) = torch_tensor_from_array(in_data, tensor_layout, torch_kCPU)
-------------------^
```
fixes [#183](#183)

There is an issue when building on mac (arm_64) or windows. The version
of `libtorch` exposes a torch tensors shape (`t->sizes().data()`) as a
`const long long int*` instead of just a `const long int*` like on linux
and mac (x86).

This commit adds preprocessor macro to switch between implementations
automatically detecting the correct version at CMake build stage.
@jatkinson1000 jatkinson1000 force-pushed the long-long-fix-mac-test branch from c9f9b01 to b58e93b Compare December 3, 2024 08:30
@jatkinson1000 jatkinson1000 force-pushed the long-long-fix-mac-test branch from b58e93b to 0a0e7e3 Compare December 3, 2024 08:33
@jatkinson1000 jatkinson1000 mentioned this pull request Dec 3, 2024
4 tasks
@jatkinson1000
Copy link
Member Author

I am closing this as the long long issues have been resolved for windows, and things here point to deeper issues on mac that should be investigated and resolved as part of #164, perhaps also incorporating #183

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

Successfully merging this pull request may close these issues.

2 participants