Commit 39d270d7 authored by peastman's avatar peastman
Browse files

Merge pull request #253 from peastman/master

Bug fixes
parents da998c51 92b12c5d
...@@ -88,7 +88,7 @@ def runOneTest(testName, options): ...@@ -88,7 +88,7 @@ def runOneTest(testName, options):
if platform.getName() == 'CUDA': if platform.getName() == 'CUDA':
properties['CudaPrecision'] = options.precision properties['CudaPrecision'] = options.precision
elif platform.getName() == 'OpenCL': elif platform.getName() == 'OpenCL':
properties['OpenCLPrecision'] = options.device properties['OpenCLPrecision'] = options.precision
# Run the simulation. # Run the simulation.
......
...@@ -142,10 +142,10 @@ public: ...@@ -142,10 +142,10 @@ public:
_mm256_storeu_si256((__m256i*) v, val); _mm256_storeu_si256((__m256i*) v, val);
} }
ivec8 operator&(ivec8 other) const { ivec8 operator&(ivec8 other) const {
return _mm256_and_ps(_mm256_castsi256_ps(val), _mm256_castsi256_ps(other.val)); return _mm256_castps_si256(_mm256_and_ps(_mm256_castsi256_ps(val), _mm256_castsi256_ps(other.val)));
} }
ivec8 operator|(ivec8 other) const { ivec8 operator|(ivec8 other) const {
return _mm256_or_ps(_mm256_castsi256_ps(val), _mm256_castsi256_ps(other.val)); return _mm256_castps_si256(_mm256_or_ps(_mm256_castsi256_ps(val), _mm256_castsi256_ps(other.val)));
} }
operator fvec8() const; operator fvec8() const;
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment