Code Monkey home page Code Monkey logo

xrt's People

Contributors

ashivangi avatar chienwei-lan avatar chvamshi-xilinx avatar hackwa avatar haeseunglee avatar hcneema avatar himanshu-xilinx avatar houlz0507 avatar ishitaghosh avatar jvillarre avatar larry9523 avatar mamin506 avatar maxzhen avatar ncimino avatar rajkumar-xilinx avatar rbramand-xilinx avatar rozumx avatar rradjabi avatar saifuddin-xilinx avatar sarab96 avatar sivarajeshjarugula avatar sonals avatar stsoe avatar subhransu-xilinx avatar tianhaoz95 avatar uday610 avatar vboggara-xilinx avatar venkatp-xilinx avatar xdavidz avatar xuhz avatar

Watchers

 avatar  avatar

xrt's Issues

improve logic around memcmp() in data retention

maxzhen requested changes a day ago
src/runtime_src/driver/xclng/drm/xocl/userpf/xocl_ioctl.c
size = xocl_read_sect(MEM_TOPOLOGY, &new_topology, axlf, buf);
if (size <= 0) {
if (size != 0)
goto done;
@maxzhen
maxzhen a day ago Collaborator
We will fall through when size == 0. Please double check the code to see if the rest of the code still makes sense in 0 size case, especially line 551 if (!memcmp(new_topology, xdev->topology, size)).

@rradjabi
rradjabi 21 hours ago Collaborator
This chunk isn't an addition from my change, it already existed. See Lines 575-577 of the original.

I'd prefer to keep the changes and open a new issue to patch this.

@maxzhen
maxzhen 20 hours ago Collaborator
But you added memcmp(new_topology, xdev->topology, size). The old code makes sense, but does it work for your memcmp()? If size == 0, will memcmp() thinks the new topology is the same or different? Does the result match your expectation? Also, you've moved the code around, what makes sense before may not make sense any more. I don't understand why you think it's OK to leave it as is only because it was written that way at a different place?

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.