icc Questions
2
Is it possible to coax std::atomic to output CMPXCHG16B for types where I'm not interested in using the atomic interlocked operations on Windows x64, or do I just have to suck it up and do the atom...
Contemptible asked 26/1, 2015 at 1:58
5
Solved
1
Solved
Description
I'm trying to switch over from using the classic intel compiler from the Intel OneAPI toolkit to the next-generation DPC/C++ compiler, but the default behaviour for handling floating po...
Parity asked 29/8, 2022 at 20:11
3
I installed Intel Compiler composer_xe_2013_sp1.3.174 on Linux. I am confused about the icc warnings. Feed icc with a simple program main.c as below:
int main(int argc, char **argv) {
int a = 1;
...
Eckmann asked 7/12, 2014 at 13:56
2
Solved
My problem is that I want to invoke the icc compiler from the command line, but my pc can't find it. I installed the latest oneAPI and sourced setvars.sh.
I even search for the icc file under the i...
Adriel asked 8/3, 2021 at 10:7
3
Solved
Does Intel C++ compiler and/or GCC support the following Intel intrinsics, like MSVC does since 2012 / 2013?
#include <immintrin.h> // for the following intrinsics
int _rdrand16_step(uint16_t...
Wetzell asked 31/3, 2015 at 15:49
1
The Intel C/C++ has a bunch of custom flags, some of which mix compilation and linking, (such as -qopenmp), and others are just idiosyncratic alternative forms (such as -ipp for linking with Intel'...
Undervest asked 2/1, 2022 at 15:24
2
Solved
I want to use Intel's current compiler on Linux. I have an inline macro which is supposed to detect the compiler.
It used to work with past versions of GCC and ICC. But now I get extern inline wit...
Adoration asked 23/11, 2012 at 18:11
3
I'm facing a strange behaviour using Intel C++ compiler 2019 update 5. When I fill a std::map it seems to lead to a non deterministic (?) result. The stl is from VS2019 16.1.6 in which ICC is embed...
Wares asked 13/11, 2019 at 21:6
6
Solved
I am trying to implement SSE vectorization on a piece of code for which I need my 1D array to be 16 byte memory aligned. However, I have tried several ways to allocate 16byte memory aligned data bu...
5
Solved
How can I have a __TIMESTAMP__ replacement in ISO 8601:2004?
__TIMESTAMP__
Sat Jul 6 02:50:06 2013
vs
__TIMESTAMP_ISO__
2013-07-06T00:50:06Z
Angularity asked 6/7, 2013 at 0:53
2
Solved
If I take this code
#include <cmath>
void compute_sqrt(const double* x, double* y, int n) {
int i;
#pragma omp simd linear(i)
for (i=0; i<n; ++i) {
y[i] = std::sqrt(x[i]);
}
}
and co...
Braswell asked 23/8, 2020 at 0:4
2
In 16.0, the Intel C++ Compiler provided two compilers (one based on EDG, another based on Clang).
From the 16.0 documentation:
Using the Command Line
To invoke the compiler from the command...
0
2
I am very very new to this, I have elf file input.out and need to create hex executable from it. I am using objcopy to create executable in intel hex format as follows
objcopy -O ihex input.out ou...
2
Solved
I'm currently trying to compile software for the use on a HPC-Cluster using Intel compilers. The login-node, which is where I compile and prepare the computations uses Intel Xeon Gold 6148 Processo...
Rhettrhetta asked 5/6, 2020 at 12:13
0
Please consider the example below. The class template Sample attempts to initialize reference members using a member function of a template parameter, expected to return an appropriate reference.
...
Limicolous asked 6/11, 2019 at 9:59
2
I'm not very used to using weak_ptr and I'm facing a quite confusing situation. I'm using Intel XE 2019 Composer update 5 (package 2019.5.281) in combinaison with Visual Studio 2019 ver. 16.2.5. I ...
Foret asked 4/10, 2019 at 13:20
3
My program links to both PETSc and gsl, and both libraries were compiled with icc. Here's the link command:
/usr/local/mpich2/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-prag...
Voletta asked 4/6, 2012 at 23:13
2
Solved
unixpreproc.cpp
#ifdef unix
#warning "unix is defined"
#endif
#ifdef __unix__
#warning "__unix__ is defined"
#endif
void main() {}
Using Intel C++ compiler 19.0.3:
icpc -o unixpreproc unixpre...
Compensable asked 1/8, 2019 at 8:34
0
I am trying to build the boost library with zlib support on Windows. I need to use the Intel C++ compiler, since I need some features it has. I have been able to build boost with zlib support using...
2
Solved
I wonder how does a Compiler treats Intrinsics.
If one uses SSE2 Intrinsics (Using #include <emmintrin.h>) and compile with -mavx flag. What will the compiler generate? Will it generate AVX ...
Dehumidifier asked 18/4, 2019 at 14:6
1
Solved
I figured it was about time to use a fast reciprocal square root. So, I tried writing a function (which would be marked inline in production):
float sqrt_recip(float x) {
return _mm_cvtss_f32( _m...
1
Solved
Consider the following simple program:
#include <cstring>
#include <cstdio>
#include <cstdlib>
void replace(char *str, size_t len) {
for (size_t i = 0; i < len; i++) {
if (...
Trude asked 4/2, 2019 at 22:0
2
I'm doing an experiment and the first step is to unroll a loop (from C/C++) a dozen of times (ex: 10, 50, etc) and output the C/C++ unrolled code. Is there any tool that I can use to automatize suc...
Phonetist asked 19/5, 2014 at 14:12
1 Next >
© 2022 - 2025 — McMap. All rights reserved.