Comments (8)
@zerodefect thanks for the request, please let me know if the proposed commit fix your needs . I also added a tests directory where you can send PR of examples you need support so we can reproduce easily. Let me know if this is ok so I can proceed with merge of commit
from make-fmv-patch.
Thanks @VictorRodriguez. Apologies for the delay; I've been away for a few days. I'll try this out tonight and let you know how I get on.
from make-fmv-patch.
Hi @VictorRodriguez , I've had an opportunity to give this PR the time it deserves.
Firstly, I've tried to reproduce the problem that I noticed in the patch file at end of last week, but I've not been able to create a small enough example. I'm beginning to think that a combination of default implementations (for constructors, destructors, etc) and inheritance causes this issue. It's certainly a gcc error. I think you should proceed regardless of what I am seeing though as the problem is upstream of yourself.
Secondly, I tried out the test cases. They work nicely. Only comment here though is that when I build using make
, I notice that the build finishes but the console pauses until I hit another key like Enter
.
from make-fmv-patch.
@VictorRodriguez , I'm noticing some problems, but I'm not convinced it's with your script. I have a patch file for a .cpp file which looks like this:
--- ../src/cps/av_input/decoders/abstract_decoder.cpp 2018-11-12 09:23:54.132350000 +0000
+++ ../src/cps/av_input/decoders/abstract_decoder.cpp~ 2018-11-30 00:10:24.164276000 +0000
@@ -143,3 +143,7 @@
// $CB_BEGIN_FOOTER$ //
// $CB_END_FOOTER$ //
+__attribute__((target_clones("avx2","arch=atom","default")))
+__attribute__((target_clones("avx2","arch=atom","default")))
+__attribute__((target_clones("avx2","arch=atom","default")))
+__attribute__((target_clones("avx2","arch=atom","default")))
So a few FMV attributes have been added at the end of the file but they are 1 after the other and do not correlate to locations where code (functions and/or member functions) is defined.
This was generated on Ubuntu Bionic 18.04 using gcc v8.2 using -O2
with -ftree-vectorize
.
from make-fmv-patch.
@zerodefect what src are you using? i was looking for src/cps/av_input/decoders/abstract_decoder.cpp in google but could find , just let me know what git project it is and i can clone and test the script
from make-fmv-patch.
I should have been cleare; I tried it on a few internal projects that I have. I'll either try recreate a code sample or I'll find a project on Github that produces similar results.
from make-fmv-patch.
ok, one question did the test that I upload in this PR works for you with C++ in your development environment?
from make-fmv-patch.
@zerodefect you need to apply the patches that the tool generate , maybe with git am or git apply
from make-fmv-patch.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from make-fmv-patch.