<commit_before>__constant sampler_t nearest = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_CLAMP_TO_EDGE
	| CLK_FILTER_NEAREST;

__constant sampler_t linear = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_CLAMP_TO_EDGE
	| CLK_FILTER_LINEAR;

//For this simple test we'll just take a vector as the velocity
__kernel void simpleAdvect(__global float2 *vel, read_only image2d_t vals, write_only image2d_t valsNext)
{
	//We'll pick a time step
	float dt = 1.0f / 60.0f;
	int2 coord = (int2)(get_global_id(0), get_global_id(1));
	float2 x_n = (float2)(coord.x, coord.y);

	//We take only s01 since we're doing 2d, x/y values
	float2 x_nHalf = x_n - 0.5f * dt * (*vel);
	float2 x_nS = x_n - dt * (*vel);

	//Now sample the value where we "started" and set the next value at x_n to that one
	//We use the linear sampler to get linear interpolation at the traceposition for free
	//float4 tVal = read_imagef(vals, linear, x_nS);
	//float4 tVal = (float4)(0.5f, 0.0f, 0.0f, 1.0f);
	//write_imagef(valsNext, coord, tVal);
	float4 tVal = read_imagef(vals, nearest, coord);
	write_imagef(valsNext, coord, tVal);
}<commit_msg>Forgot to change normalized coords flag back to FALSE<commit_after>__constant sampler_t nearest = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE
	| CLK_FILTER_NEAREST;

__constant sampler_t linear = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE
	| CLK_FILTER_LINEAR;

//For this simple test we'll just take a vector as the velocity
__kernel void simpleAdvect(__global float2 *vel, read_only image2d_t vals, write_only image2d_t valsNext)
{
	//We'll pick a time step
	float dt = 1.0f / 60.0f;
	int2 coord = (int2)(get_global_id(0), get_global_id(1));
	float2 x_n = (float2)(coord.x, coord.y);

	//We take only s01 since we're doing 2d, x/y values
	float2 x_nHalf = x_n - 0.5f * dt * (*vel);
	float2 x_nS = x_n - dt * (*vel);

	//Now sample the value where we "started" and set the next value at x_n to that one
	//We use the linear sampler to get linear interpolation at the traceposition for free
	//float4 tVal = read_imagef(vals, linear, x_nS);
	//float4 tVal = (float4)(0.5f, 0.0f, 0.0f, 1.0f);
	//write_imagef(valsNext, coord, tVal);
	float4 tVal = read_imagef(vals, nearest, coord);
	write_imagef(valsNext, coord, tVal);
}
{'fraction_non_alphanumeric': 0.104, 'fraction_numerical': 0.029333333333333333, 'mean_word_length': 4.613466334164588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '309412', 'n_tokens_mistral': 912, 'n_tokens_neox': 881, 'n_words': 260}