Giter Club home page Giter Club logo

Comments (7)

siegLoesch avatar siegLoesch commented on June 2, 2024 1

Hello @cliffburdick,
that works well. Output from example1_simple_slice is (added original tensor output to check correctness of slice):
Tensor{int32_t} Rank: 2, Sizes:[5, 4], Strides:[4,1]
000000: 1 2 3 4
000001: 5 6 7 8
000002: 9 10 11 12
000003: 13 14 15 16
000004: 17 18 19 20
Tensor{int32_t} Rank: 2, Sizes:[2, 2], Strides:[4,1]
000000: 6 7
000001: 10 11

Tested also with example1_init and example1_permute which also yield correct results.

Thank you for your efforts and kind regards
Siegfried

from matx.

cliffburdick avatar cliffburdick commented on June 2, 2024

Hi @siegLoesch, I tried to reproduce this on my platform and saw:

Tensor{int32_t} Rank: 2, Sizes:[2, 2], Strides:[4,1]
000000: 6 7
000001: 10 11

That error indicates that it can't detect the type of pointer it is for printing. Can you please print out what mtype is right before that assert?

from matx.

siegLoesch avatar siegLoesch commented on June 2, 2024

Hello @cliffburdick, the value of mtype before the assert:
mtype before assert = 2
I checked also the Create and Permute examples which do not output mtype at all. I assume they do not enter the respective if clause:

#ifdef __CUDACC__
  cudaDeviceSynchronize();
  if constexpr (is_tensor_view_v<Op>) { ...

Thanks for your help and kind regards
Siegfried

from matx.

cliffburdick avatar cliffburdick commented on June 2, 2024

That's interesting -- which GPU is this? I'm not sure why this wouldn't be triggering in our code. I can submit a patch if I can't reproduce it

from matx.

siegLoesch avatar siegLoesch commented on June 2, 2024

The GPU is: GeForce RTX 2060
BR
Siegfried

from matx.

cliffburdick avatar cliffburdick commented on June 2, 2024

Hi @siegLoesch can you please try the print_device branch?

from matx.

cliffburdick avatar cliffburdick commented on June 2, 2024

Resolved by #436

from matx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.