intel

CMake - Generating Visual Studio project using Intel Compiler

爱⌒轻易说出口 提交于 2020-01-01 06:42:08
问题 Is there a simple (or hack) way to generate a Visual Studio 2008 project that uses Intel Compiler from cmake? I have found some notes about using ICProjConvert . Does anyone have any scripts or CMake snippets that are proven to work? Here's the screenshot of the final solution I'd like to obtain. Note that it contains Intel Compiler projects: alt text http://img156.imageshack.us/img156/370/screenau.png 回答1: The situation is not that good at the moment. After much googling, I've managed to

Do Intel and AMD processor have the same assembler?

有些话、适合烂在心里 提交于 2019-12-31 08:29:53
问题 The C language was used to write UNIX to achieve portability -- the same C language program compiled using different compilers produces different machine instructions. How come Windows OS is able to run on both Intel and AMD processors? 回答1: AMD and Intel processors(*) have a large set of instructions in common, so it is possible for a compiler or assembler to write binary code which runs "the same" on both. However, different processor families even from one manufacturer have their own sets

Intel 8086 Assembly procedure calling from C

巧了我就是萌 提交于 2019-12-31 03:59:09
问题 I need to develop a procedure for Assembly language and call that procedure from C language (pass a string and return an integer value). My assembly procedure works fine "stand-alone". I need help with connecting them together. Program is supposed to run on Intel 8086. I need to use MASM or emu8086 as assembler/simulator. Kindly recommend a C compiler and also a way to make the simple C program that is able to call the assembly procedure and get the returned value. How can I pass a string to

Cuda programming on a mac with Intel HD 4000 [closed]

人走茶凉 提交于 2019-12-30 09:57:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . What do I have to do, to be able to do Cuda programming on a Macbook Air with Intel HD 4000 graphics? Setup a virtual machine? Buy an external Nvidia card? Is it possible at all? 回答1: If you have a new(-ish) Macbook Air you could perhaps use an external (NVidia) graphics device like this: external Thunderbolt

Are there SIMD(SSE / AVX) instructions in the x86-compatible accelerators Intel Xeon Phi?

好久不见. 提交于 2019-12-30 06:24:56
问题 Are there SIMD(SSE / AVX) instructions in the x86-compatible accelerators MIC Intel Xeon Phi? http://en.wikipedia.org/wiki/Xeon_Phi 回答1: Yes, current generation of Intel Xeon Phi co-processors (codename "Knight's Corner" , abbreviated KNC) supports 512-bit SIMD instruction set called "Intel® Initial Many Core Instructions" (abbreviated Intel® IMCI ). Intel IMCI is not "compatible with" and is not equialent to SSE, AVX, AVX2 or AVX-512 ISA. However it's officially announced that next planned

What is the semantics for Super Queue and Line Fill buffers?

痴心易碎 提交于 2019-12-29 07:59:10
问题 I am asking this question regarding Haswell Microarchitetcure(Intel Xeon E5-2640-v3 CPU). From the specifications of the CPU and other resources I found out that there are 10 LFBs and Size of the super queue is 16. I have two questions related to LFBs and SuperQueues: 1) What will be the maximum degree of memory level parallelism the system can provide, 10 or 16(LFBs or SQ)? 2) According to some sources every L1D miss is recorded in SQ and then SQ assigns the Line fill buffer and at some

check if carry flag is set

扶醉桌前 提交于 2019-12-29 07:26:12
问题 Using inline assembler [gcc, intel, c], how to check if the carry flag is set after an operation? 回答1: With conditional jumps jc (jump if carry) or jnc (jump if not carry). Or you can store the carry flag, ;; Intel syntax mov eax, 0 adc eax, 0 ; add with carry 回答2: sbb %eax,%eax will store -1 in eax if the carry flag is set, 0 if it is clear. There's no need to pre-clear eax to 0; subtracting eax from itself does that for you. This technique can be very powerful since you can use the result

What could cause a deterministic process to generate floating point errors

独自空忆成欢 提交于 2019-12-29 06:23:06
问题 Having already read this question I'm reasonably certain that a given process using floating point arithmatic with the same input (on the same hardware, compiled with the same compiler) should be deterministic. I'm looking at a case where this isn't true and trying to determine what could have caused this. I've compiled an executable and I'm feeding it the exact same data, running on a single machine (non-multithreaded) but I'm getting errors of about 3.814697265625e-06 which after careful

PERF STAT does not count memory-loads but counts memory-stores

陌路散爱 提交于 2019-12-29 05:32:26
问题 Linux Kernel : 4.10.0-20-generic (also tried this on 4.11.3) Ubuntu : 17.04 I have been trying to collect stats of memory-accesses using perf stat . I am able to collect stats for memory-stores but the count for memory-loads return me a 0 value . The below is the details for memory-stores :- perf stat -e cpu/mem-stores/u ./libquantum_base.arnab 100 N = 100, 37 qubits required Random seed: 33 Measured 3277 (0.200012), fractional approximation is 1/5. Odd denominator, trying to expand by 2.

What is __m128d?

删除回忆录丶 提交于 2019-12-29 01:39:29
问题 I really can't get what "keyword" like __m128d is in C++. I'm using MSVC, and it says: The __m128d data type, for use with the Streaming SIMD Extensions 2 instructions intrinsics, is defined in <emmintrin.h> . So, is it a Data Type? typedef ? If I do: #include <emmintrin.h> int main() { __m128d x; } I can't see the defination on <emmintrin.h> . It seems a keyword of compiler? Does it automatically convert that keyword to somethings like "move register xmm0" etc? Or which kind of operation