amd

requireJS optional dependency

主宰稳场 提交于 2019-11-26 19:59:55
问题 I'm adding AMD support to a javascript library I develop. This library may use jquery but it will still work if jquery isn't loaded. When defining the module dependency there's a way to set a dependency as 'optional' so that if that library is missing the module will still work? 回答1: I've had exactly the same problem recently, and here's how I fixed it. I defined a RequireJS plugin called optional which ignores modules that fail to load by explicitly defining them as an empty object (but I

Correct way to implement jQuery with require.js

末鹿安然 提交于 2019-11-26 19:24:43
问题 I am using the current stable release of both require.js and jQuery and I am currently including jQuery like this requirejs.config({ paths: { 'jQuery': 'vendor/jquery', } }); require(['jQuery'], function(jQuery) { log(jQuery); // working }); What I don't get is that I don't really need to explicitly give back jQuery, as this will still work (also in other modules): require(['jQuery'], function( // nothing here ) { log(jQuery); // working }); Now I'm not sure if this is the correct way of

【笔记】计算能效的资料收集——每耗费一瓦特电力获得的计算能力

蓝咒 提交于 2019-11-26 16:36:17
相关文章 看AMD恶搞:用人脑“意念”和GPU做“计算”能力对比 经过AMD的“测试”:人脑的计算能力是100TFlops,而RV770 GPU的计算能力是1TFolps;内存带宽(我脑袋里恐怕还是EDO内存):人脑为10Exabits/s,而RV770 GPU内(显)存带宽为TeraBits/sec(据我所知HD4850的显存带宽为64GB,不知道这里是什么意思);同时,人脑的功耗为最大30瓦 特,而RV770 GPU的功耗为150W;最后一个是每瓦特功耗的计算能力,人脑每瓦特功耗能计算3T的数据,而RV770大约能计算0.007 T。 很显然,AMD在宣称人脑的“意念”速度也只是RV770 GPU的100倍而已,没准过几年AMD就能研发出于人类“意念”速度一样的GPU了。 SANAM 超级计算机案例分析: 重新定义超级计算能效 这台超级计算机实现了令人难以置信的能效,它可维持 420 TFLOPS(每秒 420 万亿次浮点运算)的运算速度,系统能效达到每瓦特 2.3 GFLOPS(每秒 23 亿次浮点运算),每瓦特每秒可执行 23 亿 5100 万次运算。除了在全球超级计算机能效排行榜 Green500 上夺得第二名以及在全球超级计算机性能排行榜上取得第五十二名以外,SANAM 超级计算机还向证明了这样一个事实:现今最强大和最具能效性的超级计算机是以图形管理器为主要动力的。

AMD RX580刷BIOS提高ETH算力

为君一笑 提交于 2019-11-26 12:27:51
AMD RX580刷BIOS提高ETH算力 显存体质较好的RX580可以将算力提到30Mh/s,默认只有24.x 工具:1. atiflash 用于提取显卡当前bios,改完bios后也是用它刷回去。 参考下载链接https://www.techpowerup.com/download/ati-atiflash/ 2. gpu-z 用于查看显存品牌。如果是三星的,改bios时可以将显存频率调到2000,其他的改到1975应该能稳定。 3. PolarisBiosEditor-master 用于修改显卡bios。 参考下载链接https://github.com/jaschaknack/PolarisBiosEditor 4. atikmdag-patcher 用于对驱动进行签名。请使用1.4.7或更新版本,否则无法支持较新显卡。 步骤:a。先查看显存品牌 b。提取bios c。修改bios,修改参数参考这个帖子https://blog.csdn.net/qq_19998189/article/details/78643879 d。刷回更改后的bios,方法参考c步骤。 e。对驱动签名。 f。重启电脑。前面a—e步骤未做完切勿重启电脑。 来源: https://blog.csdn.net/ocean666/article/details/98853251

Which cache mapping technique is used in intel core i7 processor?

一个人想着一个人 提交于 2019-11-26 11:23:34
I have learned about different cache mapping technique like direct mapping,associate mapping and set associative mapping technique and also learned the trade-offs. But I am curious what is used in intel core i7 or AMD processor nowadays. And how the techniques are evolved. And what are things that needs to be improved? Direct-mapped caches are basically never used in modern high-performance CPUs . The power savings are outweighed by the large advantage in hit rate for a set-associative cache of the same size, with only a bit more complexity in the control logic. Transistor budgets are very

How to disable the warning 'define' is not defined using JSHint and RequireJS

℡╲_俬逩灬. 提交于 2019-11-26 10:19:20
问题 I uses RequireJS AMD in my project. When i run jshint on my project, it throws error like In AMD Scripts \'define\' is not defined. In Mocha test cases \'describe\' is not defined. \'it\' is not defined. How to remove this warning in jshint? 回答1: Just to expand a bit, here's a .jshintrc setup for Mocha: { .... "globals" : { /* MOCHA */ "describe" : false, "it" : false, "before" : false, "beforeEach" : false, "after" : false, "afterEach" : false } } From the JSHint Docs - the false (the

supporting both CommonJS and AMD

筅森魡賤 提交于 2019-11-26 10:18:10
问题 Is there a way to create a javascript micro-library (a library that has no dependencies), that support all of the following module formats: Asynchronous Module Definition CommonJS exposing the library\'s exports as a global namespace object (no loader) 回答1: Here is a list of various cross-compatible module formats. I suspect that the one you're looking for is what they're calling "commonjsStrict.js" 回答2: Yes, and I owe this answer to ded and his awesome modules: (function(name, definition) {

Webpack ProvidePlugin vs externals?

随声附和 提交于 2019-11-26 09:15:50
问题 I\'m exploring the idea of using Webpack with Backbone.js. I\'ve followed the quick start guide and has a general idea of how Webpack works, but I\'m unclear on how to load dependency library like jquery / backbone / underscore. Should they be loaded externally with <script> or is this something Webpack can handle like RequireJS\'s shim? According to the webpack doc: shimming modules, ProvidePlugin and externals seem to be related to this (so is bundle! loader somewhere) but I cannot figure

Android Studio - How Can I Make an AVD With ARM Instead of HAXM?

我怕爱的太早我们不能终老 提交于 2019-11-26 09:09:01
问题 I\'m new to Android Studio. My computer doesn\'t support HAXM so it won\'t let me install that to use for virtualization. In some similar questions on this website people mention setting up a virtual device with an ARM instead of HAXM. How can I do this? In the AVD manager all of the premade hardware profiles use HAXM, and when I click \"New Hardware Profile\" I don\'t see any option to use ARM. I looked in the SDK Manager and for API 22 I have installed \"ARM EABI v7a System Image\" and \

Is LFENCE serializing on AMD processors?

别说谁变了你拦得住时间么 提交于 2019-11-26 08:37:45
问题 In recent Intel ISA documents the lfence instruction has been defined as serializing the instruction stream (preventing out-of-order execution across it). In particular, the description of the instruction includes this line: Specifically, LFENCE does not execute until all prior instructions have completed locally, and no later instruction begins execution until LFENCE completes. Note that this applies to all instructions, not just memory load instructions, making lfence more than just a